I'm trying to add a react material template to my reactJs Project. I fix all the errors but I can't fix this one
WARNING in ./node_modules/stylis-plugin-rtl/dist/stylis-rtl.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\Users\syrine\management\node_modules\stylis-plugin-rtl\src\stylis-rtl.ts' file: Error: ENOENT: no such file or directory, open 'C:\Users\syrine\management\node_modules\stylis-plugin-rtl\src\stylis-rtl.ts'
@ ./src/App.js 39:0-42 74:22-31
@ ./src/index.js 22:0-22 28:35-38
1 warning has detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
webpack 5.67.0 compiled with 1 warning in 22425 ms
I will be very thankful if you can help me fixing this issue
I'm trying to add a react material template to my reactJs Project. I fix all the errors but I can't fix this one
WARNING in ./node_modules/stylis-plugin-rtl/dist/stylis-rtl.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\Users\syrine\management\node_modules\stylis-plugin-rtl\src\stylis-rtl.ts' file: Error: ENOENT: no such file or directory, open 'C:\Users\syrine\management\node_modules\stylis-plugin-rtl\src\stylis-rtl.ts'
@ ./src/App.js 39:0-42 74:22-31
@ ./src/index.js 22:0-22 28:35-38
1 warning has detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
webpack 5.67.0 compiled with 1 warning in 22425 ms
I will be very thankful if you can help me fixing this issue
Share Improve this question asked Jan 27, 2022 at 14:27 Syrine Ben HassenSyrine Ben Hassen 911 silver badge6 bronze badges2 Answers
Reset to default 19Try this:
npm i [email protected]
Solved for me
Adding .env at the root of your project and adding this line to your env file GENERATE_SOURCEMAP=false
will solve the problem.
Taken from https://github.com/styled-components/stylis-plugin-rtl/issues/33#issuecomment-1232840477