# cordova-custom-configのビルドエラー

### 事象&#x20;

アプリビルドにおいて、無限ループが発生しエラー「JavaScript heap out of memory」となります。

### 原因

&#x20;npmパッケージ「colors」に無限ループが発生する不具合が含まれて公開されました。&#x20;

プラグイン「cordova-custom-config」においてもnpmモジュール「colors」を利用しているため不具合が発生しています。

### 対応方法

エラー修正版のプラグイン「cordova-custom-config」のv5.1.1がリリースされました。

Cordovaプラグインの管理画面よりバージョンを選択いただけます。

![](/files/sWOnkufDd3ABk9N17Cxy)

プラグイン「cordova-custom-config」以外にて事象が発生している場合は、暫定対応としてMonacaプロジェクトのルートディレクトにある「package.json」を下記のように修正することで、不具合が含まれるバージョンの利用を回避できます。

```
"dependencies": {
  ・・・
  "colors": "1.4.0",
  ・・・
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ja.docs.monaca.io/release_notes/cordova-custom-confignobirudoer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
