Answer the question
In order to leave comments, you need to log in
How to configure vue.config.js with typescript?
Hello, this is my first time working with typescript and when trying to set up vue.config.js
const webpack = require("webpack");
module.exports = {
plugins: [
new webpack.DefinePlugin({
__VUE_I18N_FULL_INSTALL__: true,
__VUE_I18N_LEGACY_API__: false,
__VUE_I18N_PROD_DEVTOOLS__: false,
__INTLIFY_PROD_DEVTOOLS__: false,
}),
],
},
};
$ vue-cli-service lint
error: Require statement not part of import statement (@typescript-eslint/no-var-requires) at vue.config.js:1:17:
> 1 | const webpack = require("webpack");
| ^
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question