source-map-loader
source-map-loader copied to clipboard
source-map-loader Failed to parse source map... Error: ENOENT: no such file or directory
Bug report
What is the current behavior?
source-map-loader reporting errors for each installed module, example below (this repeats for each installed module)
WARNING in ./node_modules/caip/dist/cjs/utils.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/hsbc/Documents/dev/ethereum-login/node_modules/caip/src/utils.ts' file: Error: ENOENT: no such file or directory, open '/Users/hsbc/Documents/dev/ethereum-login/node_modules/caip/src/utils.ts'
@ ./node_modules/caip/dist/cjs/account.js 11:16-34
@ ./node_modules/caip/dist/cjs/index.js 11:9-29
@ ./node_modules/@ceramicnetwork/stream-caip10-link/lib/caip10-link.js 21:15-30
@ ./node_modules/@ceramicnetwork/stream-caip10-link/lib/index.js 24:13-37
@ ./node_modules/@ceramicnetwork/http-client/lib/ceramic-http-client.js 16:29-74
@ ./src/App.js 6:0-56
@ ./src/index.js 7:0-24 11:33-36
If the current behavior is a bug, please provide the steps to reproduce.
npx create-react-app <react-name>
npm install @3id/connect @ceramicnetwork/3id-did-resolver @ceramicnetwork/http-client @ceramicstudio/idx dids ethers
npm start
What is the expected behavior?
source-map-loader should not report any errors.
Other relevant information: webpack version: 5.66.0 Node.js version: 16.13.2 Operating System: Monterey 12.1 Additional tools:
This issue was moved from webpack/webpack#15199 by @alexander-akait. Original issue was by @mickeysox.
@mickeysox it means package have broken source maps, and do not publish source map
So shouldn't source-map-loader quietly ignore those packages that don't publish a source map instead of screaming if it's not a requirement?
Yes, you can ignore it, also you can report about this to authors
If you are debugging the npm library through npm link, you need to configure sourceRoot as the absolute path of the local source code repository。
Like rrweb, after this configuration, it can be successfully debugged in Google
Yes, you can ignore it, also you can report about this to authors How can I ignore it please?
Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks!