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

5.2.0 - Can't resolve 'react-is' in '/app/node_modules/styled-components/dist' while building a NextJS project #136

Closed
moukkari opened this issue Aug 25, 2022 · 0 comments

Comments

@moukkari
Copy link

moukkari commented Aug 25, 2022

Step #0: info  - Creating an optimized production build...
Step #0: Failed to compile.
Step #0: 
Step #0: ./node_modules/styled-components/dist/styled-components.browser.esm.js
Step #0: Module not found: Can't resolve 'react-is' in '/app/node_modules/styled-components/dist'
Step #0: 
Step #0: Import trace for requested module:
Step #0: ./node_modules/react-loader-spinner/dist/esm/loader/InfinitySpin.js
Step #0: ./node_modules/react-loader-spinner/dist/esm/index.js

Couldn't create a NextJS build because of the error above while using the 5.2.0 package. Downgrading to 5.1.5 solved the issue.

mhnpd added a commit that referenced this issue Aug 25, 2022
@mhnpd mhnpd closed this as completed in 2a5f004 Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant