All of a sudden, my Next.js deployment to Vercel stopped working after the latest deploy and started complaining about not having @types/react AND typescript installed.
It looks like you re trying to use TypeScript but do not have the required package(s) installed.
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).
在我的项目中,我使用了:
"@types/react": "18.2.15",
"typescript": "5.1.6"
在部署失败时,我根本不修改这些一揽子计划。 我对受扶养人所作的唯一变化是增加了che。 我尝试重建这一揽子方案。 也没有消除这一错误。
我来到这里的有,几乎同一问题。 然而,由于这个问题已经过时,我决定在2023年提出一个新问题。 旧的解决办法是贬低“@型号/反应型号”,但对我来说并不可行。
How can I get past this blocker? Thanks