-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Could not resolve webpack #202
Comments
Thank you for your reporting! Could you give us minimum reproduction code via GitHub or StackBliz plaese? 🙏 Issue reporting guidline said:
Ref blog article: https://antfu.me/posts/why-reproductions-are-required |
I reproduced the same problem in a larger code base, but were not able to create a minimum reproduction until now. |
Hi, I also got the same issue when trying to setup my new project with Nuxt 3.
Both This is a minimum reproduction on StackBlitz: https://stackblitz.com/edit/nuxt3-issue-unplugin-vue-i18n |
Experiencing this issue too. Trying to migrate nuxt 2 project to nuxt 3. |
I have the same issue. Seems to be no news on this :( |
Reporting a bug?
I am using
import VueI18nVitePlugin from "@intlify/unplugin-vue-i18n/vite";
vite: { resolve: { alias: { "vue-i18n": "vue-i18n/dist/vue-i18n.runtime.esm-bundler.js", }, }, plugins: [ svgLoader(), VueI18nVitePlugin({ include: [ resolve(dirname(fileURLToPath(import.meta.url)), "./locales/*.json"), ], }), ], },
and when I open my App I get an error that webpack is not installed but I am using vite.
Expected behavior
No Error
Reproduction
See code above.
Issue Package
unplugin-vue-i18n
System Info
Screenshot
No response
Additional context
[vite] error while updating dependencies: 19:31:48
Error: Build failed with 3 errors:
node_modules/@intlify/unplugin-vue-i18n/lib/index.mjs:454:27: ERROR: Could not resolve "webpack"
node_modules/esbuild/lib/main.js:1327:21: ERROR: [plugin: vite:dep-pre-bundle] Failed to resolve entry for package "@intlify/shared". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." entry in "@intlify/shared" package
node_modules/esbuild/lib/main.js:1327:21: ERROR: [plugin: vite:dep-pre-bundle] Failed to resolve entry for package "@intlify/shared". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." entry in "@intlify/shared" package
Validations
The text was updated successfully, but these errors were encountered: