-
Notifications
You must be signed in to change notification settings - Fork 429
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
Cannt find module react-scripts-ts/config/webpack.config #358
Comments
same here |
How to solve it? |
This has been caused by recent changes to CRA (2.1.2) where they merged the The adjustment to paths made in To solve it, you'll need to install an older version of Use |
@dawnmist Thank you:) |
Same problem. |
@myadzel As described 2 comments above yours, use a 1.x version of react-app-rewired instead of a 2.x version to solve the problem.
|
Yes, I have seen these comments. In my case, I just found a way to stop using rewired. |
@myadzel do you want to share your way with us? |
@Flui You can try |
Any update on a fix for this? The |
Please note: I also use react-scripts-ts and react-app-rewired, with all 3 options for modifying webpack, devServer and jest. I haven't migrated to CRA 2.x as there are still things that I actively use from react-scripts-ts that are not yet supported. The "fix" for this is as I have already stated twice in this thread - downgrade to react-app-rewired 1.6.2. React-scripts-ts provides typescript support for CRA 1.x, and is now deprecated/no longer being maintained. This means that changes in react-app-rewired to support CRA 2.x using a different version of Webpack do not apply to react-scripts-ts and are frequently not compatible with the version of Webpack that react-scripts-ts uses. For typescript support, you have 2 choices:
The webpack configuration changes between CRA 2.x and CRA 1.x/react-scripts-ts are not compatible. The new plugins for CRA 2.x are based on Webpack 4 - which react-scripts-ts does not use. This means that using those can often cause problems with react-scripts-ts's Webpack 3 configuration. The plugins that are compatible with react-app-rewired 1.x are still compatible with react-scripts-ts Webpack 3 configuration, as they are based on Webpack 3. You are not losing any functionality by downgrading to react-app-rewired 1.6.2 - you are instead using the version that is compatible with react-scripts-ts's build system. |
There are no
webpack.config
Inreact-scripts-ts/config/
:The text was updated successfully, but these errors were encountered: