这是indexloc提供的服务,不要输入任何密码
Skip to content
Discussion options

You must be logged in to vote

You don't want to install next into your ui package's dependencies directly. Rather, you have two options:

  1. You can design your component so that it expects a linkComponent prop and use it so that linking works correctly for your framework.

  2. Use peerDependencies to make the dependency available from consumers: https://nodejs.org/en/blog/npm/peer-dependencies

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@desiboli
Comment options

@anthonyshew
Comment options

Answer selected by anthonyshew
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants