cinnyapp / cinny-desktop

Yet another matrix client for desktop
GNU Affero General Public License v3.0
416 stars 49 forks source link

"Javascript heap out of memory" during build #262

Open romuald opened 10 months ago

romuald commented 10 months ago

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 (6f8370851), 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