VERCEL: can deploy to dev, but not to main
Unanswered
Cape lion posted this in #help-forum
Cape lionOP
its so strange, i can deploy to dev but not to main.
I get this error:
Please install typescript and @types/react by running:
npm install --save-dev typescript @types/react
If you are not trying to use TypeScript, please remove the tsconfig.json file from your package root (and any TypeScript files in your pages directory).
Error: Command "next build" exited with 1
However they're installed.
I had this problem about a month ago and i fixed it by ensuring the following dependancies were in sync:
deps:
"react": "18.2.0",
"react-dom": "18.2.0",
dev deps
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
However the problem has come back, and the error message is not instructive. I also cant reproduce on my local.
Any suggestions much appreciated!!
I get this error:
Please install typescript and @types/react by running:
npm install --save-dev typescript @types/react
If you are not trying to use TypeScript, please remove the tsconfig.json file from your package root (and any TypeScript files in your pages directory).
Error: Command "next build" exited with 1
However they're installed.
I had this problem about a month ago and i fixed it by ensuring the following dependancies were in sync:
deps:
"react": "18.2.0",
"react-dom": "18.2.0",
dev deps
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
However the problem has come back, and the error message is not instructive. I also cant reproduce on my local.
Any suggestions much appreciated!!