Skip to content

[BUG] Error while running build of heap limit allocation failed #775

@vineetbambah

Description

@vineetbambah

Describe the bug
When I run the build command the allocated 2 GB memory to v8 engine is exceeded and it gives me an error that heap limit allocation failed.

To Reproduce
Steps to reproduce the behavior:

  1. Open your terminal in the Preswald directory
  2. Run python -m preswald.build frontend
  3. After modules are transformed the script shuts off
  4. See error

Expected behavior
The script should run completely and a build should be created.

Screenshots

Image

Environment:

  • OS: Ubuntu (8GB RAM)
  • Browser: Chrome
  • Version: 24

Additional context
By default only 2 GB is allocated to NodeJS's v8 engine and the build takes up more thus giving the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions