Error when running `sanity install` due to trailing comma in sanity.json

1 replies
Last updated: Oct 26, 2020
[Solved.]I’m getting this error when running `sanity install`:

Error occured trying to resolve project root:
Unexpected token ] in JSON at position 337
Never seen this before and it doesn’t give much insight where to look. This is a project I had run before in the past—I had just killed the process to install some dependencies.
Oct 26, 2020, 10:58 PM
Solved. Don’t put a trailing comma after a line in sanity.json. 🤦
Oct 26, 2020, 11:05 PM

Sanity– build remarkable experiences at scale

The Sanity Composable Content Cloud is the headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?