prerender-loader: Cannot find module 'webpack/lib/MultiEntryPlugin'
- “prerender-loader”: “^1.3.0”,
- “webpack”: “^5.3.2”,
- “webpack-cli”: “^3.3.12”,
when I run webpack it turn out this.
I can not find webpack/lib/MultiEntryPlugin
in webpack5 lib.
but how to fix this?
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 1
- Comments: 18
It looks like webpack 5 has deprecated the MultiEntryPlugin. The fix isn’t too bad, but there’s several other changes in webpack 5 that break this plugin. I have a working fork up at https://github.com/nettoolkit/prerender-loader, but I’ve only tested it for my project.
Any news on this one?
Have you tried referencing the GitHub repo in your package.json? I currently have the following line in my dependencies to keep
prerender-loader
up-to-date:Hi guys, any update here?
Sadly seems dead 😦
@dwoznicki thank you so much for the fix! it seems that
prerender-loader
is the only working webpack5 tool to generate static files. Others (https://github.com/markdalgleish/static-site-generator-webpack-plugin) didn’t work for me.It’s quite sad that most of such tools are getting deprecated in favour of heavyweight frameworks like Gatsby or Next.js
Can someone ping a maintainer of this repo to fix the compatibility with webpack 5?
Wtf, I can do this? Lol. / () __ () \
@developit It looks like I’m no longer blocked by developit/microbundle#74, so I’ll look into making my fork into a PR.
I’d really like to do something about #51 though. I can’t incorporate prerender-loader into my project without this fix, so even if I submit a webpack 5 patch, I’ll still need to keep using my fork. Is there something I could do to get this fix merged?