you can disable this check in eslintrc.js file module.exports = { ... rules: { ... '@typescript-eslint/no-var-requires': 0, } }