Closed RookieGz closed 1 year ago
If I'm wrong please close this issue
Any solution, pls?
@wxfred add this code in webpack.config.js
plugins: [ new NormalModuleReplacementPlugin( /^hexoid$/, require.resolve("hexoid/dist/index.js") ), ],
@wxfred add this code in webpack.config.js
plugins: [ new NormalModuleReplacementPlugin( /^hexoid$/, require.resolve("hexoid/dist/index.js") ), ],
Not work for me, but really helpful to locate the problem -- webpack5 uses hexoid/dist/index.mjs by default while formidable uses it as a CommonJS module. I'm using vue-cli-plugin-electron-builder
, finally, i found a work around
in vue.config.js
module.exports = {
pluginOptions: {
electronBuilder: {
chainWebpackMainProcess(config) {
config.resolve.alias
.set('hexoid', 'hexoid/dist/index.js')
Thanks a lot.
Describe the bug
Node.js version: v16.19.0
OS version: macOS Ventura 13.1
Description:
i try to package a nodejs app with webpack5, but when the app running has a error:
I notice has a
formidable 2.0.1
, Maybe it's a bug with this packageformidable 2.0.1
Actual behavior
Expected behavior
Code to reproduce
Checklist