chrisvfritz / prerender-spa-plugin

Prerenders static HTML in a single-page application.
MIT License
7.33k stars 634 forks source link

Render hooks not working correctly #330

Open mjones2620 opened 5 years ago

mjones2620 commented 5 years ago

After following several examples, I have determined that the render hooks are not working correctly in my application. RenderAfterElementExists will pre-render the correct folders under /dist, but it just copies index.html over? When using RenderAfterDocumentEvent, the build process stops at 98% and provides an error "prerender-spa-plugin] Unable to prerender all routes! (node:6228) UnhandledPromiseRejectionWarning: Error: Protocol error (Runtime.callFunctionOn): Target closed."

I've followed all possible combinations in this repo, not sure what else to try.

imjonos commented 3 years ago

Same issue