source-map-loader icon indicating copy to clipboard operation
source-map-loader copied to clipboard

source-map-loader Failed to parse source map... Error: ENOENT: no such file or directory

Open webpack-bot opened this issue 3 years ago • 6 comments

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.

webpack-bot avatar Jan 18 '22 13:01 webpack-bot

@mickeysox it means package have broken source maps, and do not publish source map

alexander-akait avatar Jan 18 '22 13:01 alexander-akait

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?

mreaybeaton avatar Jan 18 '22 13:01 mreaybeaton

Yes, you can ignore it, also you can report about this to authors

alexander-akait avatar Jan 18 '22 14:01 alexander-akait

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。

huchenh avatar Mar 06 '22 04:03 huchenh

Like rrweb, after this configuration, it can be successfully debugged in Google image image

huchenh avatar Mar 06 '22 04:03 huchenh

Yes, you can ignore it, also you can report about this to authors How can I ignore it please?

atong666 avatar Jun 14 '22 12:06 atong666

Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks!

alexander-akait avatar Oct 07 '22 16:10 alexander-akait