Open asgerhallas opened 2 years ago
Hello, library maintainers! Is this work slated as part of the roadmap for this project, or can we submit a PR to address migrating to Webpack 5? Happy to do so if it will be helpful
Hi @j-schuster, I'm happy to review and merge your PR to add webpack 5 support to this plugin. Thanks
Hi all, how is this progressing? If it's moving along I'll tell my team to just be patient. If you're stuck, I'll get my project on webpack 4 and see if we can help.
I'm stuck with the same problem, Do we have any update on this ? I'm using storybook with globalize-webpack-plugin
Storybook:
FYI I'm using ckeditor5 with Webpack 5(webpack and webpack cli also ) and also have updated my library project React 18.2.0 Node : v16.19.0 Npm : 9.2.0 OS: Windows
Storybook:
Package.json
"devDependencies": {
"@storybook/addon-actions": "^6.3.3",
"@storybook/addon-console": "^1.2.3",
"@storybook/addon-controls": "^6.3.3",
"@storybook/addon-docs": "^6.3.3",
"@storybook/addon-postcss": "^2.0.0",
"@storybook/addon-storyshots": "^6.3.3",
"@storybook/addon-toolbars": "^6.3.3",
"@storybook/addon-viewport": "^6.3.3",
"@storybook/addons": "^6.3.3",
"@storybook/react": "^6.3.3",
"@storybook/source-loader": "^6.3.3",
"@storybook/theming": "^6.3.3",
"globalize-webpack-plugin": "^3.0.0"
}
Error :
info @storybook/react v6.5.13
info
ERR! Error: Cannot find module 'webpack/lib/MultiEntryPlugin'
ERR! Require stack:
ERR! - C:\Dev\Git\spa\thumb-components\node_modules\globalize-webpack-plugin\ProductionModePlugin.js
ERR! - C:\Dev\Git\spa\thumb-components\node_modules\globalize-webpack-plugin\index.js
ERR! - C:\Dev\Git\spa\thumb-components.storybook\webpack-extend.js
ERR! - C:\Dev\Git\spa\thumb-components.storybook\main.js
ERR! - C:\Dev\Git\spa\thumb-components\node_modules\@storybook\core-common\dist\cjs\utils\interpret-require.js
ERR! - C:\Dev\Git\spa\thumb-components\node_modules\@storybook\core-common\dist\cjs\utils\load-custom-presets.js
ERR! - C:\Dev\Git\spa\thumb-components\node_modules\@storybook\core-common\dist\cjs\presets.js
ERR! - C:\Dev\Git\spa\thumb-components\node_modules\@storybook\core-common\dist\cjs\index.js
ERR! - C:\Dev\Git\spa\thumb-components\node_modules\@storybook\core-server\dist\cjs\index.js
ERR! - C:\Dev\Git\spa\thumb-components\node_modules\@storybook\core\dist\cjs\server.js
ERR! - C:\Dev\Git\spa\thumb-components\node_modules\@storybook\core\server.js
ERR! - C:\Dev\Git\spa\thumb-components\node_modules\@storybook\react\dist\cjs\server\index.js
ERR! - C:\Dev\Git\spa\thumb-components\node_modules\@storybook\react\bin\index.js
ERR! at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
ERR! at Function.Module._load (node:internal/modules/cjs/loader:841:27)
ERR! at Module.require (node:internal/modules/cjs/loader:1067:19)
ERR! at require (node:internal/modules/cjs/helpers:103:18)
ERR! at Object.
WARN Broken build, fix the error above. WARN You may need to refresh the browser.
node:internal/modules/cjs/loader:995 const err = new Error(message); ^
Error: Cannot find module 'webpack/lib/MultiEntryPlugin' Require stack:
@j-schuster Are you able to submit a PR to allow for this library to work with webpack 5?
Using this plugin with webpack 5 produces below error.
Is this a known error? And in that case, is there a way work through or around it?