最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Failed to parse source map from 'C:Userssyrinemanagementnode_modulesstylis-plugin-rtlsrcstylis-rtl.ts&#

programmeradmin4浏览0评论

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 badges
Add a comment  | 

2 Answers 2

Reset to default 19

Try 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

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论