-
-
Notifications
You must be signed in to change notification settings - Fork 36
Description
Missing information about what is breaking with version 9. Can't find anything under these links:
https://github.com/gregnb/filemanager-webpack-plugin/tags
https://github.com/gregnb/filemanager-webpack-plugin/releases
However my build fails after upgrading to 9.0.1 from ^8.0.0.
The error seems to be related to ESM builds and Node versions:
[webpack-cli] Failed to load '/PROJECT_PATH/webpack.prod.js' config
[webpack-cli] Error [ERR_REQUIRE_ESM]: require() of ES Module /PROJECT_PATH/node_modules/del/index.js from /PROJECT_PATH/node_modules/filemanager-webpack-plugin/dist/index.cjs not supported.
Instead change the require of index.js in /PROJECT_PATH/node_modules/filemanager-webpack-plugin/dist/index.cjs to a dynamic import() which is available in all CommonJS modules.
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at Object. (/PROJECT_PATH/node_modules/filemanager-webpack-plugin/dist/index.cjs:31:21) {
code: 'ERR_REQUIRE_ESM'
}
Changing from node 22.11.0 to 22.14.0 fixed this error but I can't find any information about that version node version 22.14.0 is required.