Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Javascript heap out of memory" during build #262

Open
romuald opened this issue Jan 8, 2024 · 0 comments
Open

"Javascript heap out of memory" during build #262

romuald opened this issue Jan 8, 2024 · 0 comments

Comments

@romuald
Copy link

romuald commented Jan 8, 2024

Describe the bug

I'm opening this issue simply hopping that some warning / instruction might be added to the build process.

When running npm run tauri build on the main branch (6f83708), I'm getting the following error:

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
...
       Error beforeBuildCommand `cd cinny && npm run build` failed with exit code 134

Using export NODE_OPTIONS=--max-old-space-size=4096 before the command will get rid of the issue

Reproduction

Following the build instructions:

git clone --recursive https://github.com/cinnyapp/cinny-desktop.git
cd cinny-desktop/cinny
npm ci
cd ..
npm ci
npm run tauri build

Expected behavior

No response

Platform and versions

- Linux Debian bullseye
- node v18.17.1
- npm 9.6.7
- 6f8370851 (main branch)

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant