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 from... Error: ENOENT: no such file or directory

See original GitHub issue

The problem is when I run yarn start there are some warnings occur as:

...

WARNING in ./node_modules/@usedapp/core/dist/esm/src/providers/transactions/reducer.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/mac/Desktop/react-django-nft-marketplace/react_django_nft_marketplace/frontend/frontend/node_modules/@usedapp/core/dist/esm/src/providers/transactions/reducer.js.map' file: Error: ENOENT: no such file or directory, open '/Users/mac/Desktop/react-django-nft-marketplace/react_django_nft_marketplace/frontend/frontend/node_modules/@usedapp/core/dist/esm/src/providers/transactions/reducer.js.map'
 @ ./node_modules/@usedapp/core/dist/esm/src/providers/transactions/provider.js 8:0-47 23:46-64
 @ ./node_modules/@usedapp/core/dist/esm/src/providers/DAppProvider.js 8:0-62 50:29-48
 @ ./node_modules/@usedapp/core/dist/esm/src/providers/index.js 1:0-31 1:0-31
 @ ./node_modules/@usedapp/core/dist/esm/src/index.js 2:0-28 2:0-28
 @ ./src/App.tsx 5:0-54 11:30-42 13:24-37 13:39-54
 @ ./src/index.tsx 7:0-24 11:33-36

102 warnings have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.68.0 compiled with 102 warnings in 2298 ms
Files successfully emitted, waiting for typecheck results...
Issues checking in progress...
No issues found.
^C
mbp:frontend mac$

I’ve created the react app by running npx create-react-app frontend --template typescript command. I noticed that error occurs only with @usedapp/core library. Is the issue in the package managers (yarn, npm, npx)? I’ve used 3 of them in the same project already.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
phaniuscommented, Feb 9, 2022

@vanruch I think issue still persist, I’ve used 0.11 and new similar warning occur

Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/ssd/project/my-app-ts/node_modules/@metamask/detect-provider/src/index.ts' file: Error: ENOENT: no such file or directory, open '/ssd/project/my-app-ts/node_modules/@metamask/detect-provider/src/index.ts'
 @ ./node_modules/@usedapp/core/dist/esm/src/helpers/injectedProvider.js 2:0-63 4:33-55
 @ ./node_modules/@usedapp/core/dist/esm/src/providers/injectedNetwork/provider.js 4:0-69 19:4-23
 @ ./node_modules/@usedapp/core/dist/esm/src/providers/injectedNetwork/index.js 2:0-27 2:0-27
 @ ./node_modules/@usedapp/core/dist/esm/src/providers/index.js 6:0-34 6:0-34
 @ ./node_modules/@usedapp/core/dist/esm/src/index.js 2:0-28 2:0-28
 @ ./src/index.tsx 9:0-59 12:19-37 14:5-16 15:5-23 17:13-16 19:5-16 20:5-23 25:33-45

if needed, I will open a new issue. Thank you

1reaction
vanruchcommented, Feb 8, 2022

@vsevdrob @ioitiki @dappdappgo Thanks for reporting, should be fixed in 0.11. Closing issue for now, please reopen if the problem persists

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 >
Failed to parse source map from 'C:\' file: Error - YouTube
greetings, this is slu channel we will handle the Failed to parse source map from 'C:\' file: Error : ENOENT : no such...
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 >

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