You need to sign in to do that
Don't have an account?
Ed Womack
Trailhead "Build Your First Unlocked Package JSON error"
Hello, I'm going through the Trailhead "Build Your First unlocked Package" and everything has worked fine up until when I tried the following CLI command:
sfdx force:package:create --name dreamhouse --description "My Package" --packagetype Unlocked --path force-app --nonamespace --targetdevhubusername DevHub
When I enter this line the CLI consistently displays "Unexpected token } in JSON at position 239" - I had a look through all of the possible json files in the directories uploaded from GitHub, but everything looked okay. My Dev Org is using API 44. This error message gives me very little information - has anyone seen and resolved this one before?
sfdx force:package:create --name dreamhouse --description "My Package" --packagetype Unlocked --path force-app --nonamespace --targetdevhubusername DevHub
When I enter this line the CLI consistently displays "Unexpected token } in JSON at position 239" - I had a look through all of the possible json files in the directories uploaded from GitHub, but everything looked okay. My Dev Org is using API 44. This error message gives me very little information - has anyone seen and resolved this one before?
Prakash Rai 7
Can you post your sfdx-project.json?
Ed Womack
I believe this is the one:
Prakash Rai 7
You have one extra "}" at the end. FYI https://jsonlint.com/ helps to validate JSON.