-
Notifications
You must be signed in to change notification settings - Fork 224
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
SyntaxError: Unexpected token z in JSON at position 0 #254
Open
provegard opened this issue
Oct 12, 2019
· 4 comments
· Fixed by 42technologies/node-source-map-support#1 · May be fixed by #283
Open
SyntaxError: Unexpected token z in JSON at position 0 #254
provegard opened this issue
Oct 12, 2019
· 4 comments
· Fixed by 42technologies/node-source-map-support#1 · May be fixed by #283
Comments
danielbayley
added a commit
to danielbayley/node-source-map-support
that referenced
this issue
Oct 15, 2020
…ebase This bug was hard to track down! It breaks all my tests, and has been a real hinderance to my _[jest-preset-coffeescript](https://github.com/danielbayley/jest-preset-coffeescript/runs/1254200867?check_suite_focus=true)_ package. Fixes evanw#254.
danielbayley
added a commit
to danielbayley/source-map
that referenced
this issue
Oct 15, 2020
I'm not sure this is the best fix for this bug, which was hard to track down! But I have also attempted to address it here: https://github.com/evanw/node-source-map-support/pull/283… although looking at the activity on that repo, I don't have much hope of it being merged any time soon… Hence the reason for this PR. See also: evanw/node-source-map-support#254
danielbayley
added a commit
to danielbayley/jest-preset-coffeescript
that referenced
this issue
Oct 15, 2020
See evanw/node-source-map-support#254 for details.
danielbayley
added a commit
to danielbayley/jest-preset-coffeescript
that referenced
this issue
Oct 15, 2020
See evanw/node-source-map-support#254 for details.
danielbayley
added a commit
to danielbayley/jest-preset-coffeescript
that referenced
this issue
Oct 16, 2020
I landed here after just a lot of failing to get a coffeescript preset working with Jest. The one-liner provided by @danielbayley works for us. |
I got the same error using coffee, also don't see the code daniel committed anymore. |
Same error with the coffeescript preset in jest. |
This was referenced Nov 28, 2022
surjikal
pushed a commit
to 42technologies/source-map
that referenced
this issue
May 1, 2023
I'm not sure this is the best fix for this bug, which was hard to track down! But I have also attempted to address it here: https://github.com/evanw/node-source-map-support/pull/283… although looking at the activity on that repo, I don't have much hope of it being merged any time soon… Hence the reason for this PR. See also: evanw/node-source-map-support#254
surjikal
added a commit
to 42technologies/source-map
that referenced
this issue
May 6, 2023
I'm not sure this is the best fix for this bug, which was hard to track down! But I have also attempted to address it here: https://github.com/evanw/node-source-map-support/pull/283… although looking at the activity on that repo, I don't have much hope of it being merged any time soon… Hence the reason for this PR. See also: evanw/node-source-map-support#254 # Conflicts: # lib/util.js
surjikal
added a commit
to 42technologies/source-map
that referenced
this issue
May 6, 2023
I'm not sure this is the best fix for this bug, which was hard to track down! But I have also attempted to address it here: https://github.com/evanw/node-source-map-support/pull/283… although looking at the activity on that repo, I don't have much hope of it being merged any time soon… Hence the reason for this PR. See also: evanw/node-source-map-support#254 # Conflicts: # lib/util.js
@evanw Any chance to merge the suggested fix from 42technologies#1? The issue is still occurring. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have the following situation:
extendedTrace
).prepareStackTrace
method is called, since source-map-support is used by ts-node.retrieveSourceMapURL
.retrieveSourceMapURL
extracts the following source map from coffeescript.js: "zw(u�"parseSourceMapInput
.I created a git repo that demonstrates the problem: https://github.com/provegard/sourcemap-bug
Clone it, run
npm install
and thennpm test
. It produces the following output:If I modify retrieveSourceMapURL to print
lastMatch
, I get:Versions:
The text was updated successfully, but these errors were encountered: