You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried installing the package with pnpm, npm and yarn. With yarn I get a node version error... and the others I get the error above when execute the command.
@samuel-s-marques can you give more information? I just tried to run upgrade-kit on your repo and it seems to works fine. Can you give your node version and also the command/patch you ran?
I had a similar issue and it wasn't a comment that was causing the problem, but the last element of an object in my tsconfig.json had a comma (,)...so it was expecting a new line. VSCode wasn't complaining so it went unnoticed.
Activity
samuel-s-marques commentedon Feb 7, 2024
Yep. Same here.
SyntaxError: Unexpected token } in JSON at position 497.RomainLanz commentedon Feb 7, 2024
Hey both of you! 👋🏻
Is it possible to share the repository where you try to run the command?
samuel-s-marques commentedon Feb 7, 2024
Hey! I'm trying to run on thisdatedoesnotexist-server. It's still using AdonisJS v5. I'm trying to update it to v6.
Julien-R44 commentedon Feb 19, 2024
sorry I missed that issue. i will take a look
Julien-R44 commentedon Feb 20, 2024
@samuel-s-marques can you give more information? I just tried to run upgrade-kit on your repo and it seems to works fine. Can you give your node version and also the command/patch you ran?
I'm using Node 21.6
royvanderzon commentedon Feb 24, 2024
I had the same problem and found this code in upgrade-kit/src/runner.ts
For me the problem was that in my
tsconfig.jsona line was commeted out:There are multiple .json configs so it could be that you need to check the other config files as well (.adonisrc.json, tsconfig.json, package.json).
This fixed the error for me. I also had another error message but it resolved after I upgraded to node v21.
redareda9 commentedon Feb 29, 2024
Same problem here.
@royvanderzon's solution didn't work. I had no comments in any of my json files.
Julien-R44 commentedon Feb 29, 2024
i need a repro or at least more informations. otherwise there's nothing I can do to help
D40298008 commentedon Mar 4, 2024
I had a similar issue and it wasn't a comment that was causing the problem, but the last element of an object in my
tsconfig.jsonhad a comma (,)...so it was expecting a new line. VSCode wasn't complaining so it went unnoticed.