V
V
VctorIAN2021-06-08 03:22:34
Internationalization and localization
VctorIAN, 2021-06-08 03:22:34

(i18n optimization) Why does yarn swear at i18n?

Hello, to optimize the resulting i18n build, it is recommended to use the work mode vue-i18n.runtime.esm-bundler.js
https://vue-i18n.intlify.dev/guide/advanced/optimi...
To do this, vue.conf.js (in the case of vue) module.exportsis created inside

resolve: {
    alias: {
      'vue-i18n': 'vue-i18n.esm-bundler.js'
    }
  },

however when trying yarn lint I get
yarn run v1.22.10
$ vue-cli-service lint
 ERROR  Invalid options in vue.config.js: "resolve" is not allowed
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

What can be done to fix this...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
twolegs, 2021-06-08
@twolegs

Webpack is configured in a different field, hence the error.
https://cli.vuejs.org/config/#configurewebpack

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question