birkir / gatsby-source-prismic-graphql

Gatsby source plugin for Prismic GraphQL
MIT License
137 stars 75 forks source link

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory #209

Open ghost opened 4 years ago

ghost commented 4 years ago

Hello, recently I have been trying to add this plugin to a project following the guidelines at https://prismic.io/docs/reactjs/getting-started/prismic-gatsby. This is the second time I've used this plugin as the first time around I had no issues (different projects).

When I add the bare minimum into the gatsby-config file, such as: { resolve: "gatsby-source-prismic-graphql", options: { repositoryName: "my-repo-name-here", }, },

Then start up the project, the start-up hangs on createPagesStatefully.

After around 10minutes of this, I get shown a JS Stack Trace that tells me FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory.

Here is where it hangs: hanging-covered

And the JS Stack Trace printed: js_stack_trace

If I can supply more info to help deduce the issue please let me know.