Just starting out with typescript and running into an issue while configuring 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,
}),
],
},
};
An error is popping up when I try:
$ 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");
| ^
Everything was smooth in a javascript project, but facing this hiccup in the typescript project. Any suggestions on how to resolve it?