Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to parse source map #204

Open
abdulhaseeb13mar opened this issue Apr 11, 2022 · 2 comments
Open

failed to parse source map #204

abdulhaseeb13mar opened this issue Apr 11, 2022 · 2 comments

Comments

@abdulhaseeb13mar
Copy link

`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"],

@TheoOliveira
Copy link

Try to remove the node_modules and the lock file and update all packages or upgrade depending if it's npm or yarn. @abdulhaseeb13mar

@mcmire
Copy link
Contributor

mcmire commented Nov 8, 2022

We need to make a similar update here as we did for detect-provider: MetaMask/detect-provider#46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants