Uh oh!
There was an error while loading. Please reload this page.
fix: ignore webpack warnings by source-map-loader - #11752
Conversation
Some third party packages may ship miss-configured sourcemaps, that interrupts the build See: react#11278 (comment)
raix
commented
Dec 14, 2021
Not sure if everything should be ignored or only warnings regarding node modules? |
Bnaya
commented
Dec 15, 2021
source-maps-loader is used 99.9% of cases for node_modules only |
jd1048576
commented
Dec 16, 2021
You could use the suggested example of ignoreWarnings: [/Failedtoparsesourcemap/]from the source map loader docs https://github.com/webpack-contrib/source-map-loader#ignoring-warnings |
Bnaya
commented
Dec 16, 2021
This will not give us the desired feature of focusing on |
raix
commented
Dec 18, 2021
@Bnaya I've tried rerunning the tests, but seem to be an issue either with caching or lock file - When doing |
Bnaya
commented
Dec 19, 2021
I've ran npm install (With npm 8.3) and committed the updated lock file. |
Bnaya
commented
Dec 20, 2021
CI passes |
I don't know how relevant this is, but I had ejected after upgrading to CRA 5, and I wanted to implement this So the fix for me was to change the relevant line to: warning.module?.resource.includes('node_modules')&&(Note the optional chaining) I don't know under what circumstances |
Bnaya
commented
Jan 6, 2022
I will add a null check there, even tho by webpack code/types module shouldn't be undefined. Regarding using optional chaining, eslint won't let me use it in the project, so i will go with old-style check |
denchen
commented
Jan 6, 2022
I was able to replicate the issue. What I did was introduce an ESLint error into one of my TSX files by simply adding: constunusedVar=1;and never actually using As stated in my original comment, I have ejected CRA with very minimal config changes, so I don't know how relevant my error is for non-ejected CRA. |
yann-combarnous
commented
Jan 10, 2022
@Bnaya , to be on-par with CRA4 when it comes to webpack dev server logging, could you consider adding to webpack.config.json? This will get rid of all the assets bundling verbosity introduced in CRA5, while keeping warnings and errors displayed. |
Bnaya
commented
Jan 10, 2022
I think It's out of the scope of this PR |
Just a fly on the wall here, and following this topic as were affected by this as well. |
KholdStare
commented
Apr 18, 2023
Waiting for this too. Any updates? |
Rishav-k
commented
Jun 24, 2023
Another case where dependencies produce warnings. my project depends on
|
albanx
commented
Jan 22, 2024
any update on this PR? Can someone solve the conflicts and merge it? |
alleksei37
commented
Feb 1, 2024
😭😭😭😭 |
saurabh-cimpress
commented
Feb 13, 2024
Any update on this please? |
reymundelosantosIII
commented
Mar 12, 2024
Any update pls. |

Some third party packages may ship miss-configured sourcemaps, that interrupts the build
See: #11278 (comment)
To trigger the error, simply install "stylis-plugin-rtl@2.1.1"
add
import {} from "stylis-plugin-rtl"somewhere in the codebefore:

After:
