chrisvfritz / prerender-spa-plugin

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

Fix: Not compatible with Webpack5, because of compilerFS.mkdirp was not supported now #470

Open jsbugwang opened 2 years ago

jsbugwang commented 2 years ago

webpack5: mkdirp is no longer expected to be a function on the output file system https://github.com/webpack/webpack.js.org/issues/3110

Since Node 10, fs.mkdir(path[, options], callback) supporting mkdir recursively. Upgrade the engines. node to to >=10.0.0

runtimess commented 2 years ago

Yeah, I've just encountered the same problem. You have to add 'const fs = require('fs')' to es6/index.js as well because it fails So, thanks a lot for the fix I'm looking forward to seeing this merged

jsbugwang commented 2 years ago

const fs = require('fs')

yes, I've lost this line. thanks.

runtimess commented 2 years ago

I'm just wondering when it can be merged?

runtimess commented 2 years ago

Anyone here?

acirulis commented 2 years ago

Hi, this plugin is linked from official Vue.js documentation, so would also like to know maintenance status. Thank you!

Tofandel commented 2 years ago

As this library is still waiting for a new maintainer, you can use prerender-spa-plugin-next in the meantime