国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

VueJS項(xiàng)目中使用eslint-loader時(shí)出現(xiàn)TypeError: eslint.CLIEngine不是一個(gè)構(gòu)造函數(shù)
P粉771233336
P粉771233336 2024-03-25 20:19:26
0
1
1171

我正在 WebStorm 中啟動(dòng)一個(gè)新的 VueJS 項(xiàng)目。我創(chuàng)建了一個(gè)新的 VueJS 項(xiàng)目,升級(jí)了 NPM,添加了 Vuetify ,啟動(dòng)服務(wù)器后,它引發(fā)了此錯(cuò)誤:

ERROR  Failed to compile with 1 errors                                                                                                                                                                          11:34:19 AM

Module build failed (from ./node_modules/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js):
TypeError: eslint.CLIEngine is not a constructor
    at Object.module.exports (/home/milano/WebstormProjects/xxx/node_modules/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js:223:27)

我該如何解決這個(gè)問(wèn)題?我應(yīng)該降級(jí) eslint 嗎?

P粉771233336
P粉771233336

全部回復(fù)(1)
P粉543344381

ESLint 更新 2019.1.3 解決了此問(wèn)題。 查看此內(nèi)容

您可能需要:

  • 升級(jí)您的 IDE 以獲取最新版本的 ESLint

  • 或者升級(jí) ESLint

  • 或者,此處有一個(gè) hack,其中涉及更新如何es-lint 已導(dǎo)入。例如:

    改變

    this.CliEngine = require(this.basicPath + "lib/cli-engine");

    this.CliEngine = require(this.basicPath).CLIEngine;

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板