当我试着运行我的下一个.js app with npm run dev
我收到一条错误消息,说我没有使用Typescript运行下一步所需的包:
Please install @types/react by running:
npm install --save-dev @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".我试着运行npm install --save-dev @types/react
次,但没有收到任何错误消息(只是一堆警告,但我认为这不是问题所在).
我如何解决这个问题并运行项目?