Error: Can't parse json file /vercel/path0/package.json
Answered
Asiatic Lion posted this in #help-forum
Asiatic LionOP
I just added "@vercel/analytics": "^1.3.1" at the end of my package.json and edited layout.tsx
I ran into the error
It was working just fine before this, I even went back to the original package.json and all of the things i modified and still running into this error
What can be the problem??
First part of my package.json that i think the error is occurring :
(I use --legacy-peer-deps, --force because i have some old libraries)
But as i said it was working just fine before i modified it and now even the original version is not working
I ran into the error
Error: Can't parse json file /vercel/path0/package.json: Unexpected token '}', ..."lytics"
},
"devD"... is not valid JSON while parsing '{
"name": "portfolio-new",
"version"'It was working just fine before this, I even went back to the original package.json and all of the things i modified and still running into this error
What can be the problem??
First part of my package.json that i think the error is occurring :
{
"name": "portfolio",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},(I use --legacy-peer-deps, --force because i have some old libraries)
But as i said it was working just fine before i modified it and now even the original version is not working
3 Replies
Asiatic LionOP
Wait wtf
It worked
Asiatic LionOP
it was some cache problem
Answer