-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
CRA 5.0 show webpack's log #11871
Comments
TL;WR
...from webpack v4 to v5 In this CRA commit, in
I definitely consider it a bug. EditUsing the (I have no idea if or how this affects |
Link to the documentation about stats. For me this is a usability bug since useful errors and warnings get buried under the stats that are only useful during a production build. |
It should be set to Screenshots of compile error logs |
is there a fix for this without editing files inside modules? |
@alondon17 - as far as I can tell, no. Unless it's worth it to you to Edit: You can also fix it in the meantime by adding a package (CRACO) and tweaking your npm scripts to call it instead. |
Is there any plan to fix this in future CRA updates? |
Excellent point about duplicates and thanks for investigating the differences! The duplicated version also has more information, like file and line number, which is important. |
Any fix? |
If you recompile after startup (min. once), the framed section should disappear (also I have |
The log is emit from CRA now is using |
In CRA v4.0.3 webpack.config.js, a But v4.0.3 requires a much older version of For newer versions of Based on that package's documentation, you might be able to silence it without ejecting or modifying |
For anyone using Craco all you have to do is make a craco.config.js file in your root and add this Like this
|
@thetechie7 can you even use craco with cra5 ? there are open issues in craco's repo here including an open and active "todo" for adding support for cra5: dilanx/craco#378 |
@robbiemu yeah you can't use the current version of craco with CRA5. you need to use alpha versions of craco that support CRA5.
|
I don't know why the pr closed. 😔 |
Mainly caused by the react-script version, I tried npm run eject issue, tried to modify some changes in the webpack config, but that is way more complex for me. So I decided to downgrade my react-script version. By downgrading the creat-react-app's react version to 17.0.1, react-dom to ^17.0.1, then react-script version to 4.0.1 in the package.json, remove the node modules. run npm i, then npm start can fix the extra webpack lout issue How to downgrade React version 17 to 16? |
In previous version, the webpack's log is hidden.
In CRA 5.0 the webpack's log is shown.
I don't know if this is a feature or a bug.
The text was updated successfully, but these errors were encountered: