kazupon / nuxt-i18n-next

MIT License
11 stars 0 forks source link

Cannot start nuxt: Cannot find module 'vue-i18n/dist/vue-i18n.esm-bundler.js' #1

Open lucpotage opened 2 years ago

lucpotage commented 2 years ago

Hi @kazupon and thank you for this PoC. I tried it on a project and got the following error:

Cannot start nuxt: Cannot find module 'vue-i18n/dist/vue-i18n.esm-bundler.js'

I honestly have no idea what this means. I am new to both Nuxt 3 and TypeScript.

Require stack: node_modules/@kazupon/nuxt-i18n-next/dist/module.mjs at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.resolve (node:internal/modules/cjs/helpers:108:19) at setupNuxt3 (node_modules/@kazupon/nuxt-i18n-next/dist/module.mjs:481:53) at setup (node_modules/@kazupon/nuxt-i18n-next/dist/module.mjs:536:13) at Object.wrappedModule (node_modules/@nuxt/kit/dist/index.mjs:407:22) at node_modules/@kazupon/nuxt-i18n-next/module.cjs:3:58 at async installModule (node_modules/@nuxt/kit/dist/index.mjs:456:3) at async initNuxt (node_modules/nuxt3/dist/index.mjs:941:5) at async load (node_modules/nuxi/dist/chunks/dev.mjs:6717:9) at async Object.invoke (node_modules/nuxi/dist/chunks/dev.mjs:6756:5)

TomMiller-mas commented 2 years ago

I am getting this error:

ERROR Cannot find package 'webpack' imported from C:\devSandbox-Tom\DevFork-Tom\MAS-Auth\mas-auth-balm\node_modules\@nuxtjs\i18n\dist\module.mjs

at new NodeError (node:internal/errors:371:5) at packageResolve (node:internal/modules/esm/resolve:884:9) at moduleResolve (node:internal/modules/esm/resolve:929:18) at defaultResolve (node:internal/modules/esm/resolve:1044:11) at ESMLoader.resolve (node:internal/modules/esm/loader:422:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:222:40) at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40) at link (node:internal/modules/esm/module_job:75:36)

It seems to be the information for the installer is missing, so it can't be deployed.

My configuration in nuxt.config.ts (nuxt3, no bridging)

modules: ["@nuxtjs/i18n"],