vite version 5.2.10 and @intlify/unplugin-vue-i18n version 4.0.0 compatibility issue #16621
Unanswered
mandudeman
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a current application that runs on vite version 5.2.10 and whenever I tried to install @intlify/vite-plugin-vue-i18n version 7.0.0,, the terminal throws an error as this plugin only supports until Vite 3.
When I installed @intlify/unplugin-vue-i18n and run the npm command
npm run dev
, the terminal threw the error below:λ npm run dev
Re-optimizing dependencies because lockfile has changed
VITE v5.2.10 ready in 8922 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h + enter to show help
LARAVEL v10.10.0 plugin v1.0.2
➜ APP_URL: http://ez.test/
X [ERROR] Could not resolve "webpack"
You can mark the path "webpack" as external to exclude it from the bundle, which will remove this
error and leave the unresolved path in the bundle. You can also add ".catch()" here to handle this
failure at run-time instead of bundle-time.
C:\laragon\www\quizbrite_based_ezstarter\node_modules\esbuild\lib\main.js:1651
let error = new Error(text);
^
Error: Build failed with 1 error:
node_modules/@intlify/unplugin-vue-i18n/lib/index.mjs:496:27: ERROR: Could not resolve "webpack"
at failureErrorWithLog (C:\laragon\www\quizbrite_based_ezstarter\node_modules\esbuild\lib\main.js:1651:15)
at C:\laragon\www\quizbrite_based_ezstarter\node_modules\esbuild\lib\main.js:1059:25
at C:\laragon\www\quizbrite_based_ezstarter\node_modules\esbuild\lib\main.js:1527:9
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
errors: [Getter/Setter],
warnings: [Getter/Setter]
}
Node.js v21.6.0
Is the npm package
@intlify/unplugin-vue-i18n
only compatible with webpack? Or, does it also work with other build tool like Vite version 5.2.10?Kindly suggest or point me to the direction where I can resolve this issue. Thank you very much in advance!
Beta Was this translation helpful? Give feedback.
All reactions