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
$ webpack --config webpack.config.js
[unplugin-vue-i18n] 2 (error code: 2) in /locales/en.json
target message: user{'@'}domain
target message path: address
1 | user{'@'}domain
| ^^^^^
[unplugin-vue-i18n] 2 (error code: 2) in /locales/fr.json
target message: utilisateur{'@'}domaine
target message path: address
1 | utilisateur{'@'}domaine
| ^^^^^^
/node_modules/@intlify/unplugin-vue-i18n/lib/index.cjs:640
throw new Error(errMssage);
^
at onError (/node_modules/@intlify/unplugin-vue-i18n/lib/index.cjs:640:13)
at newOptions.onError (/node_modules/@intlify/bundle-utils/lib/codegen.js:133:13)
at emitError (/node_modules/@intlify/bundle-utils/node_modules/@intlify/message-compiler/dist/message-compiler.prod.cjs:197:13)
at readTokenInPlaceholder (/node_modules/@intlify/bundle-utils/node_modules/@intlify/message-compiler/dist/message-compiler.prod.cjs:703:21)
at readToken (/node_modules/@intlify/bundle-utils/node_modules/@intlify/message-compiler/dist/message-compiler.prod.cjs:776:20)
at Object.nextToken (/node_modules/@intlify/bundle-utils/node_modules/@intlify/message-compiler/dist/message-compiler.prod.cjs:823:16)
at parseMessage (/node_modules/@intlify/bundle-utils/node_modules/@intlify/message-compiler/dist/message-compiler.prod.cjs:1029:50)
at parseResource (/node_modules/@intlify/bundle-utils/node_modules/@intlify/message-compiler/dist/message-compiler.prod.cjs:1096:25)
at Object.parse (/node_modules/@intlify/bundle-utils/node_modules/@intlify/message-compiler/dist/message-compiler.prod.cjs:1111:21)
at baseCompile (/node_modules/@intlify/bundle-utils/node_modules/@intlify/message-compiler/dist/message-compiler.prod.cjs:1421:24)
at generateMessageFunction (/node_modules/@intlify/bundle-utils/lib/codegen.js:137:67)
at Object.enterNode (/node_modules/@intlify/bundle-utils/lib/json.js:140:89)
at traverse (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:45:13)
at traverse (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:49:13)
at traverse (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:49:13)
at traverse (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:49:13)
at traverse (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:49:13)
at traverse (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:49:13)
at traverse (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:49:13)
at traverse (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:49:13)
at traverse (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:49:13)
at traverse (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:49:13)
at traverse (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:49:13)
at traverse (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:49:13)
at traverse (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:49:13)
at traverse (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:49:13)
at traverse (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:49:13)
at traverse (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:49:13)
at traverse (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:49:13)
at traverse (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:49:13)
at traverseNodes (/node_modules/jsonc-eslint-parser/lib/parser/traverse.js:55:5)
at generateNode (/node_modules/@intlify/bundle-utils/lib/json.js:87:45)
at generate (/node_modules/@intlify/bundle-utils/lib/json.js:60:22)
at Object.transform (/node_modules/@intlify/unplugin-vue-i18n/lib/index.cjs:433:48)
at Object.transform (/node_modules/unplugin/dist/webpack/loaders/transform.js:96:38)
at LOADER_EXECUTION (/node_modules/loader-runner/lib/LoaderRunner.js:132:14)
at runSyncOrAsync (/node_modules/loader-runner/lib/LoaderRunner.js:133:4)
at iterateNormalLoaders (/node_modules/loader-runner/lib/LoaderRunner.js:251:2)
at /node_modules/loader-runner/lib/LoaderRunner.js:224:4
at /node_modules/webpack/lib/NormalModule.js:836:15
at eval (eval at create (/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:12:1)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
at runNextTicks (node:internal/process/task_queues:64:3)
at process.processImmediate (node:internal/timers:447:9)
Reporting a bug?
For a translation like
I get an error when running webpack build :
Expected behavior
It should build.
Reproduction
This example : https://vue-i18n.intlify.dev/guide/essentials/syntax.html#literal-interpolation
Issue Package
unplugin-vue-i18n
System Info
Screenshot
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: