question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

I’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:

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:9
  • Comments:24 (8 by maintainers)

github_iconTop GitHub Comments

9reactions
mcmirecommented, Aug 15, 2022

We are trying to get a new version out the door that should solve this issue. Sorry for the wait folks 😃

1reaction
ivanabovincommented, Nov 23, 2022

This was useful for me - https://github.com/mswjs/msw/issues/1030#issuecomment-1009253387

Just add to .env

GENERATE_SOURCEMAP=false 
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found