无法从“C:\Users\syrine\management\node_modules\stylis-plugin-rtl\src\stylis-rtl.ts”解析源映射

Syr*_*sen 7 javascript templates reactjs react-templates webpack-5

我正在尝试将反应材料模板添加到我的reactJs 项目中。我修复了所有错误,但无法修复这个错误

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
Run Code Online (Sandbox Code Playgroud)

如果您能帮我解决这个问题,我将非常感激

小智 18

尝试这个:

npm i stylis-plugin-rtl@2.0.2
Run Code Online (Sandbox Code Playgroud)

为我解决了