-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Unexpected token u in JSON #7301
Comments
Please provide a repro |
@kdy1 Well, if I must, the repo is https://github.com/bp-studio/box-pleating-studio in DEV branch. To reproduce the error:
Please reopen the issue if that's not too much to ask for. |
Thank you, but as it's not a minimal repro, I don't think this can be fixed shortly. |
Maybe this will help. I've traced the issue down to this part: Lines 232 to 236 in d5c0dec
I believe that this
But since version 1.3.50, it could return an object with only |
@kdy1 Following the idea above, I've created a minimal repo here: After |
Thank you so much for the investigation! This is an easy issue and I'll fix this tomorrow |
Investigation takes an unknown amount of time, while fixing is very easy in most cases. |
@kdy1 True, and glad that it is also the case here. I admit that it did take me a while to go this far. Hope to see it fixed in the next version. |
Confirm fixed in v1.3.53 |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Describe the bug
In my project I'm running unit tests with mocha + ts-node + @swc/core. Not sure if this is a bug of @swc/core or of ts-node, but ever since I updated to @swc/core 1.3.50+ it shows the following error when I try to run the test:
Input code
No response
Config
No response
Playground link
No response
Expected behavior
There shouldn't be an error.
Actual behavior
No response
Version
1.3.50,1.3.51,1.3.52
Additional context
Although the source of the error seems to be in ts-node, but downgrading to @swc/core 1.3.49 solves the issue.
The text was updated successfully, but these errors were encountered: