Yarn Build - Crashes Error JavaScript Heap Out Of Memory
I have a Vue application. while running yarn build for that application it is failing with error as ' FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of me
Solution 1:
Updating or using a bigger heap memory size won't fix the root of the problem.
The root is that you're probably including an infinite loop dependency in your package.json
file.
That can happen if i.e your package name is "anAwesomePackage", and inside it's package.json dependencies, you list itself as a dependency like so:
package.json:
{
"name": "anAwesomePackage",
...
"dependencies": {
"anAwesomePackage": "latest"
}
}
npm
is smart enough to figure what to do, yarn
isn't.
Post a Comment for "Yarn Build - Crashes Error JavaScript Heap Out Of Memory"