spfx project upgrade resulting in SyntaxError: Unexpected token _ in JSON at position 1078 #4705
Replies: 2 comments 4 replies
-
Hi @tcattermole Sorry to hear that you are struggling to use
Hope this will help. |
Beta Was this translation helpful? Give feedback.
-
Yeah, that's useless indeed. Sorry @tcattermole, and we should definitely do better. Is there a chance for you to share the SPFx project with us so that we can find out what's wrong and see if we can fix the issue? Once again, sorry for the trouble and we appreciate you reporting the issue. |
Beta Was this translation helpful? Give feedback.
-
Hi
I've been going around and around in circles trying to generate project upgrade instructions for an SPFx 1.10.0 project that I wish to upgrade. I have cli-microsoft365 installed just fine but running spfx project upgrade (with or without providing options) is consistently returning the following error.
m365 spfx project upgrade --toVersion 1.12.1 --output md > "spfxupgrade.md" --verbose --debug
Executing command spfx project upgrade with options {"options":{"toVersion":"1.12.1","output":"md","verbose":true,"debug":true}}
Collecting project...
Error: SyntaxError: Unexpected token _ in JSON at position 1078
I've tried different upgrade targets to no avail. I feel like I could resolve this issue if the error provided were more precise ... unexpected token in WHAT json in particular? Has anyone else come across something similar or have any suggestions?
Thanks,
Terry
Beta Was this translation helpful? Give feedback.
All reactions