0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Next.jsがSIGSEGVで落ちる

Last updated at Posted at 2021-08-24

原因は分からんがなおったのでメモ.

エラー内容

next devで下記エラーメッセージを吐いて落ちてた.

エラーメッセージ
error Command failed with signal "SIGSEGV".

環境・技術等

  • Next.js
  • TailwindCSS
  • TypeScript
  • M1 Mac

解決方法

色々試してるうちにnext/imageとM1 Macの相性が悪いのかなあという結論になって放置してたが,あるときTailwindCSSを無駄にimportしてることに気付き,修正したらなおった.

_app.tsx(修正前)
import "~/styles/style.css";
import "tailwindcss/tailwind.css";
_app.tsx(修正後)
import "~/styles/style.css";

詳細な原因はまだあまり調査できてないです.
分かる方いれば教えていただけると助かります…

追記

別のプロダクトで試したらなおりませんでした…
他にも原因ありそう

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?