Skip to content

JavaScript heap out of memory #10

@ichko

Description

@ichko

Hi,
I am trying to use your library in the browser and while building the project I get:

...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
...
Aborted (core dumped)
npm ERR! code 134

I am using webpack for bundling and as I const mnist = require('mnist') I get the error.
I even tried loading dynamically with webpack:

  import(
    /* webpackChunkName: "mnist" */
    /* webpackMode: "lazy" */
    /* webpackPrefetch: false */
    /* webpackPreload: false */
    'mnist'
  ).then(mnist => {
    console.log('mnist');
  });

but this leads to the same error.

It would be nice if this package provides a way to load the dataset asynchronously in the browser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions