LoginSignup
7
0

More than 1 year has passed since last update.

NuxtでFATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memoryが発生する場合の解決方法

Last updated at Posted at 2019-11-14

NuxtのdevモードでFATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memoryが発生する場合の解決方法です。
以下のように、standalone: true,nuxt.config.jsbuildオプションに追加して下さい。エラーが解決します。

nuxt.config.js
// 略
  /*
   ** Build configuration
   */
  build: {
    /*
     ** You can extend webpack config here
     */
    standalone: true, //これを追加!
    extend(config, ctx) {}
  }
// 略

参考: https://github.com/nuxt/nuxt.js/pull/5452

終わりに

私は現在、Web3のサービスの開発をしています。詳しくはこちらの記事をご覧下さい。
無料でイーサリアムが当たる、Web3時代の寄付サイトを作った話

7
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
7
0