-
Notifications
You must be signed in to change notification settings - Fork 44
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
Cannot find module 'react' #23
Comments
Facing the same problem |
Adding React does not fix the problem in and of itself: react-dom, react-router-dom, and styled-components also will need to be added to the image. This can be fixed quickly by including the packages in the dockerfile(s) - versions per the error logs
Alternatively, the entire above line in the dockerfile(s) can be dropped as the For building new Strapi v4 projects with the above removed, migrate the entrypoint(s) from I just did the migration on my fork for reference. I also included a catch for adding the missing packages to existing projects as well as a version upgrade check to compare the current Strapi project version and the image version; upgrading if necessary. @naskio I'm happy to open a PR for the migration |
The text was updated successfully, but these errors were encountered: