You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've narrowed this down to an issue with some markdown. I am using a package called marsky to compile markdown into a React tree, but this compilation makes the build hang when I have crawl: true.
The function is
constgetMarkup=markdown=>{if(!markdown)returnnull;console.log('getMarkup',markdown);constcompile=marksy({
createElement,elements: {}});returncompile(markdown).tree;};// invoked as {getMarkup(someMarkdown)}
I can see the function call being logged infinitely in the console in crawl mode, but it's fine otherwise.
I am getting a "JavaScript heap out of memory" error when running a build with
crawl: true
. Here is the console outputIf I disable crawl mode, the build works, but obviously I don't get all my static pages generated.
Node 8.2.1
webpack 2.6.1
static-site-generator-webpack-plugin 3.4.1
The app works normally when I build it as a purely client app using webpack-dev-server.
Is there any way to debug why this is causing the memory error?
This is my full Webpack config
The text was updated successfully, but these errors were encountered: