You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @alexander-akait I am updating some code to webpack v5 and updated my webpack config to esm and I came across a similar issue as reported in #1622. I get the following error:
[webpack-cli] Failed to load '[path]/webpack.config.dev.js' config
[webpack-cli] Error [ERR_MODULE_NOT_FOUND]: Cannot find module '[path]/webpack.config' imported from [path]/webpack.config.dev.js
at finalizeResolution (internal/modules/esm/resolve.js:276:11)
at moduleResolve (internal/modules/esm/resolve.js:699:10)
at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:810:11)
at Loader.resolve (internal/modules/esm/loader.js:86:40)
at Loader.getModuleJob (internal/modules/esm/loader.js:230:28)
at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:56:40)
at link (internal/modules/esm/module_job.js:55:36) {
code: 'ERR_MODULE_NOT_FOUND'
}
I have type: module set in my package.json and I have the latest version of webpack-cli.
Describe the bug
Hey @alexander-akait I am updating some code to webpack v5 and updated my webpack config to esm and I came across a similar issue as reported in #1622. I get the following error:
I have
type: module
set in my package.json and I have the latest version of webpack-cli.You can check the package.json here: https://github.com/LiskHQ/lisk-desktop/blob/3415-update-webpack-v5/package.json
What is the current behavior?
I get an error as I described above.
To Reproduce
Steps to reproduce the behavior:
You can run
npm run dev
to reproduce the issue.Expected behavior
The config is imported properly.
Please paste the results of
webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: