Failed to parse source map - Error: ENOENT: no such file or directory
See original GitHub issueI’ve added the dependency: npm i @metamask/detect-provider
But getting this error:
Failed to parse source map from '/home/pomatti/pjs/uniswap/uniswap-widget/node_modules/@metamask/detect-provider/src/index.ts' file: Error: ENOENT: no such file or directory, open '/home/pomatti/pjs/uniswap/uniswap-widget/node_modules/@metamask/detect-provider/src/index.ts'
Only thing I’m doing is importing it:
import detectEthereumProvider from '@metamask/detect-provider';
No idea why it is complaining:

Issue Analytics
- State:
- Created 2 years ago
- Reactions:9
- Comments:24 (8 by maintainers)
Top Results From Across the Web
Failed to parse source map | no such file or directory ... - GitHub
Run npm start; Wait for the app to start; See error in the Terminal. Expected behavior. No warnings or errors when running the...
Read more >Failed to parse source map... Error: ENOENT: no such file or ...
you should try create an .env file in your root directory (same folder as package.json ) and set GENERATE_SOURCEMAP=false on a single line:...
Read more >Failed to parse source map warnings - Dynamic Docs
node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from 'node_modules/json-rpc-engine/src/mergeMiddleware.ts' file: Error: ENOENT: no ...
Read more >Can't get the hello-world-js example to work - Temporal
The worker fails to start - node src/worker.js. I am getting the following error ... file: Error: ENOENT: no such file or directory, ......
Read more >"Failed to parse source map" errors with datetime picker and ...
"Failed to parse source map" errors with datetime picker and CRA5 ... file: Error: ENOENT: no such file or directory, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

We are trying to get a new version out the door that should solve this issue. Sorry for the wait folks 😃
This was useful for me - https://github.com/mswjs/msw/issues/1030#issuecomment-1009253387
Just add to
.env