Open Arlisaha opened 10 months ago
Thank you for your reporting! We need your minimal reproduction. Could you give about it please?
Yes thank you.
I made a stackblitz here.
With basic example, running pnpm run watch
give me the error output :
ERROR in {main} [initial] main.571ceb03.js
Cannot read properties of undefined (reading 'length')
HookWebpackError: Cannot read properties of undefined (reading 'length')
at tryRunOrWebpackError (XXX/node_modules/webpack/lib/HookWebpackError.js:88:9)
at JavascriptModulesPlugin.renderModule (XXX/node_modules/webpack/lib/javascript/JavascriptModulesPlugin.js:528:36)
at XXX/node_modules/webpack/lib/javascript/JavascriptModulesPlugin.js:649:10
at XXX/node_modules/webpack/lib/Template.js:305:13
at Array.map (<anonymous>)
at Function.renderChunkModules (XXX/node_modules/webpack/lib/Template.js:302:30)
at JavascriptModulesPlugin.renderChunk (XXX/node_modules/webpack/lib/javascript/JavascriptModulesPlugin.js:648:13)
at Object.render (XXX/node_modules/webpack/lib/javascript/JavascriptModulesPlugin.js:309:13)
at ItemCacheFacade.get (XXX/node_modules/webpack/lib/CacheFacade.js:115:15)
at XXX/node_modules/webpack/lib/Compilation.js:4572:22
at arrayEach (XXX/node_modules/neo-async/async.js:2405:9)
at Object.each (XXX/node_modules/neo-async/async.js:2846:9)
at XXX/node_modules/webpack/lib/Compilation.js:4561:14
However, if I use the version of @intlify/unplugin-vue-i18n
specified in package.ok.json
I have no error at build time.
up
Reporting a bug?
I am building an application using VueJs webpack and vue-i18n, but whenever I run webpack I run into an error :
I have checked many dependencies and it seems that it comes from
@intlify/unplugin-vue-i18n
.My dependencies in my
package.json
:My
tsconfig.json
:My webpack config :
And the way I use vue-i18n :
My entry point :
In
@intlify/unplugin-vue-i18n@0.7.0
everything is going well, but starting version0.8.0
, whenever I run awebpack watch
, I run into an error :Expected behavior
My app should be bundled properly.
Reproduction
Unfortunaltely nothing to give here
Issue Package
unplugin-vue-i18n
System Info
Screenshot
No response
Additional context
No response
Validations