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
<!DOCTYPE html><htmllang="en"><head>
...
</head><body><noscript>
You need to enable JavaScript to run this app.
</noscript><divid="root">
{{prerender}}
</div></body></html>
ERROR in ./public/index.html (./node_modules/html-webpack-plugin/lib/loader.js!./public/index.html)
Module build failed (from ./node_modules/prerender-loader/dist/prerender-loader.js):
NotFoundError: The object can not be found here.
at HTMLDivElementImpl.insertBefore (/path/to/my/project/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js:206:17)
at HTMLDivElement.insertBefore (/path/to/my/project/node_modules/jsdom/lib/jsdom/living/generated/Node.js:264:45)
at $If_2 (/path/to/my/project/node_modules/prerender-loader/dist/prerender-loader.js:237:36)
at /path/to/my/project//node_modules/prerender-loader/dist/prerender-loader.js:249:30
at <anonymous>
Webpack config
Template
Entrypoint
When I run webpack, get
I changed the exported function to
The build completed without error. But I don't know if it's the right way to use this loader.
My repository is here if you need it.
The text was updated successfully, but these errors were encountered: