照著官網
使用此代碼建立專案
npx create-next-app@latest
ndoe 版本為 v20.11.0
package.json
{
"name": "my-app",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"react": "^18",
"react-dom": "^18",
"next": "14.1.0"
},
"devDependencies": {
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.1.0"
}
}
啟動後,console部分就會跳出此錯誤 完全沒修改任何東西就這樣 請問有解嗎
你的 node 是用第幾版?