Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to resolve react as an external dependency in custom package #8837

Closed
carwynstephen opened this issue Sep 24, 2019 · 1 comment
Closed

Comments

@carwynstephen
Copy link

Bug report

Describe the bug

I have created a package for components that will be shared in multiple NextJS projects. The package transpiles to the UMD module system and specifies react and react-dom as external dependencies to be supplied by NextJS.

When server rendering, I get the error Module not found: Can't resolve 'react' in '/repos/example-broken-app/dist'

To Reproduce

Expected behavior

The component from the example broken app should be displayed on the Next app's index.

System information

  • OS: macOS High Sierra 10.13.6
  • Chrome 76
  • NextJS 9.0.5
@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants