MetaMask / MetaMask/providers

failed to parse source map

Open
#204 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
268
Forks
130
PR merge metrics
No merged PRs in 30d

Description

`Failed to parse source map from '/home/haseeb/work/migration/node_modules/@metamask/providers/src/BaseProvider.ts' file: Error: ENOENT: no such file or directory, open '/home/haseeb/work/migration/node_modules/@metamask/providers/src/BaseProvider.ts'

Failed to parse source map from '/home/haseeb/work/migration/node_modules/@metamask/providers/src/MetaMaskInpageProvider.ts' file: Error: ENOENT: no such file or directory, open '/home/haseeb/work/migration/node_modules/@metamask/providers/src/MetaMaskInpageProvider.ts'

Failed to parse source map from '/home/haseeb/work/migration/node_modules/@metamask/providers/src/extension-provider/createExternalExtensionProvider.ts' file: Error: ENOENT: no such file or directory, open '/home/haseeb/work/migration/node_modules/@metamask/providers/src/extension-provider/createExternalExtensionProvider.ts'

Failed to parse source map from '/home/haseeb/work/migration/node_modules/@metamask/providers/src/index.ts' file: Error: ENOENT: no such file or directory, open '/home/haseeb/work/migration/node_modules/@metamask/providers/src/index.ts'

Failed to parse source map from '/home/haseeb/work/migration/node_modules/@metamask/providers/src/initializeInpageProvider.ts' file: Error: ENOENT: no such file or directory, open '/home/haseeb/work/migration/node_modules/@metamask/providers/src/initializeInpageProvider.ts'

Failed to parse source map from '/home/haseeb/work/migration/node_modules/@metamask/providers/src/messages.ts' file: Error: ENOENT: no such file or directory, open '/home/haseeb/work/migration/node_modules/@metamask/providers/src/messages.ts'

Failed to parse source map from '/home/haseeb/work/migration/node_modules/@metamask/providers/src/shimWeb3.ts' file: Error: ENOENT: no such file or directory, open '/home/haseeb/work/migration/node_modules/@metamask/providers/src/shimWeb3.ts'

Failed to parse source map from '/home/haseeb/work/migration/node_modules/@metamask/providers/src/siteMetadata.ts' file: Error: ENOENT: no such file or directory, open '/home/haseeb/work/migration/node_modules/@metamask/providers/src/siteMetadata.ts'

Failed to parse source map from '/home/haseeb/work/migration/node_modules/@metamask/providers/src/utils.ts' file: Error: ENOENT: no such file or directory, open '/home/haseeb/work/migration/node_modules/@metamask/providers/src/utils.ts'`

also when i check the .js.map files in the dist folder i realized the source path is incorrect e.g all the source paths are directing to src folder but in reality there is no src folder and no .ts file
e.g {"version":3,"file":"ObjectMultiplex.js","sourceRoot":"","sources":["../src/ObjectMultiplex.ts"],

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the generated .js.map files in the dist folder, especially ObjectMultiplex.js.map, and compare their sources entries with the published package contents. Done means the source-map paths resolve to available files and the reported failed-to-parse-source-map errors no longer occur.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.