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 #11

Closed
nmoinvaz opened this issue Jun 21, 2022 · 7 comments
Closed

Failed to parse source map #11

nmoinvaz opened this issue Jun 21, 2022 · 7 comments

Comments

@nmoinvaz
Copy link

I have been getting some failed to parse source map errors. It seems to be only related to this project and the sourcemap-codec project as well. I am using yarn 3.2.1 with pnp.

Failed to parse source map from '.yarn\cache\@jridgewell-sourcemap-codec-npm-1.4.13-b0c90a5760-f14449096f.zip\node_modules\@jridgewell\src\sourcemap-codec.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/@jridgewell/src/sourcemap-codec.ts'

Failed to parse source map from '.yarn\cache\@jridgewell-trace-mapping-npm-0.3.13-b1ff8985e7-e38254e830.zip\node_modules\@jridgewell\src\any-map.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/@jridgewell/src/any-map.ts'

Failed to parse source map from '.yarn\cache\@jridgewell-trace-mapping-npm-0.3.13-b1ff8985e7-e38254e830.zip\node_modules\@jridgewell\src\binary-search.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/@jridgewell/src/binary-search.ts'

Failed to parse source map from '.yarn\cache\@jridgewell-trace-mapping-npm-0.3.13-b1ff8985e7-e38254e830.zip\node_modules\@jridgewell\src\by-source.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/@jridgewell/src/by-source.ts'

Failed to parse source map from '.yarn\cache\@jridgewell-trace-mapping-npm-0.3.13-b1ff8985e7-e38254e830.zip\node_modules\@jridgewell\src\resolve.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/@jridgewell/src/resolve.ts'

Failed to parse source map from '.yarn\cache\@jridgewell-trace-mapping-npm-0.3.13-b1ff8985e7-e38254e830.zip\node_modules\@jridgewell\src\sort.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/@jridgewell/src/sort.ts'

Failed to parse source map from '.yarn\cache\@jridgewell-trace-mapping-npm-0.3.13-b1ff8985e7-e38254e830.zip\node_modules\@jridgewell\src\sourcemap-segment.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/@jridgewell/src/sourcemap-segment.ts'

Failed to parse source map from '.yarn\cache\@jridgewell-trace-mapping-npm-0.3.13-b1ff8985e7-e38254e830.zip\node_modules\@jridgewell\src\strip-filename.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/@jridgewell/src/strip-filename.ts'

Failed to parse source map from '.yarn\cache\@jridgewell-trace-mapping-npm-0.3.13-b1ff8985e7-e38254e830.zip\node_modules\@jridgewell\src\trace-mapping.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/@jridgewell/src/trace-mapping.ts'
@nmoinvaz
Copy link
Author

This comment might be helpful:
facebook/create-react-app#11767 (comment)

@jridgewell
Copy link
Owner

Thanks! It appears our sourcemap file locations are incorrect in dist:

// dist/trace-mapping.mjs.map
{
  "sources": ["../../src/trace-mapping.ts"]
}

That resolves to @jridgewell/src/trace-mapping.ts instead of @jridgewell/sourcemap-codec/src/trace-mapping.ts.

Might be a bug with rollup generating our dists…

jridgewell added a commit to jridgewell/resolve-uri that referenced this issue Jun 26, 2022
jridgewell added a commit to jridgewell/set-array that referenced this issue Jun 26, 2022
jridgewell added a commit that referenced this issue Jun 26, 2022
jridgewell added a commit to jridgewell/gen-mapping that referenced this issue Jun 26, 2022
@jridgewell
Copy link
Owner

Fixed by 6a465b1, released in v0.3.14

@nmoinvaz
Copy link
Author

@jridgewell wow thanks for the speedy fix! Does this also fix sourcemap-codec repository that is mentioned in the error or does another change need to be made in that repo too?

@jridgewell
Copy link
Owner

Ahh, I forgot that one. I'll update it soon.

jridgewell added a commit to jridgewell/sourcemap-codec that referenced this issue Jun 26, 2022
@jridgewell
Copy link
Owner

Done

@nmoinvaz
Copy link
Author

Thank you very much!!

jridgewell added a commit to jridgewell/sourcemaps that referenced this issue Dec 2, 2024
jridgewell added a commit to jridgewell/sourcemaps that referenced this issue Dec 2, 2024
jridgewell added a commit to jridgewell/sourcemaps that referenced this issue Dec 2, 2024
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

2 participants