-
Notifications
You must be signed in to change notification settings - Fork 36
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
Invalid JSON character: "\n" at 59:34. #4
Comments
Thank you for reporting. This schematic changes two json files, package.json and tsconfig.spec.json. Are you able to determine which file the error is coming from based on the line number (59)? Changes to tsconfig.spec.json are new so thats the likely culprit. |
This is my tsconfig.spec.json
The tsconfig which it extends
So, even combined, there is no line 59 😕 |
Was there every any solution to this? |
I think we ended up using https://github.com/just-jeb/angular-builders/tree/master/packages/jest instead :/ |
in my case it turned out to be a packge.json npm script that contained the following string Also not having a "test" script in the packge.json seems to cause a similar error |
This might be resolved in the latest PR https://github.com/briebug/jest-schematic/pull/37/files#diff-99dba52ba3c99a2cb3d95d1ada2821f8R278 where we looses the "strictness" of the JSON parsing. Can anyone test the current schematic to see if it's fixed? |
This should be fixed in the latest 3.0.0 release with https://github.com/briebug/jest-schematic/pull/37/files#diff-99dba52ba3c99a2cb3d95d1ada2821f8R278. Please reopen if not. |
I just used the latest version of this project and I had the same issue:
It seems to happen in my |
For those still having problems, what operation systems are you using? |
I'm so sorry. I realized that I am in the @jest-schematic repo. My apologies. I'm using |
ng add @briebug/jest-schematic
ℹ Using package manager: npm
✔ Found compatible package version: @briebug/[email protected].
✔ Package information loaded.
The package @briebug/[email protected] will be installed and executed.
Would you like to proceed? Yes
✔ Package successfully installed.
Invalid JSON character: "\"" at 81:11.
|
Angular 16 |
Describe the bug
I followed the read me and when running the
add
schematics it printedInvalid JSON character: "\n" at 59:34.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The schematic runs
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: