Next.js - yarn dev: error 命令失败,信号为“SIGSEGV”

问题描述

每当我运行 yarn devnpm run dev 时,我都会遇到这个问题:

yarn run v1.22.10
warning ../../../../package.json: No license field
$ next dev
ready - started server on 0.0.0.0:3000,url: http://localhost:3000
info  - Using webpack 5. Reason: no next.config.js https://nextjs.org/docs/messages/webpack5
event - compiled successfully
event - build page: /
wait  - compiling...
error Command Failed with signal "SIGSEGV".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

package.json

{
  "name": "nextjs","version": "0.1.0","private": true,"scripts": {
    "dev": "next dev","build": "next build","start": "next start"
  },"dependencies": {
    "next": "^10.2.3","react": "17.x","react-dom": "17.x","webpack": "^5.39.1"
  },"devDependencies": {
    "webpack-cli": "^4.7.2"
  }
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)