Skip to content

addon help: react as a peer dependency #30552

Answered by JReinhold
lifeiscontent asked this question in Help
Discussion options

You must be logged in to vote

Since you're using React in the preview, having React as a peer dependency is actually the right thing to do, and you should disable the prepublish check.

It's very uncommon for an addon to be using React in the preview (but totally valid for your use case), 99 % of the addons only use it in the manager, where it should be a dev dependency.

Maybe the error message can be more explicit in saying this, I'm not sure.

Let me know if it works.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lifeiscontent
Comment options

lifeiscontent Feb 21, 2025
Collaborator Author

Answer selected by lifeiscontent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants