国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

eslint提示 xxx should be listed in the project's dependencies

這篇具有很好參考價(jià)值的文章主要介紹了eslint提示 xxx should be listed in the project's dependencies。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

有時(shí)候手動(dòng)安裝了一個(gè)npm包A,npm包A里面包含了npm包B,這時(shí)候如果
import xxx from 'npm包B';

eslint會(huì)報(bào)錯(cuò),提示 npm包B 不在 package.json 里面

should be listed in the project's dependencies

?解決方法:在 eslintrc.js 增加配置文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-770780.html

module.exports = {
  rules: {
    'import/no-extraneous-dependencies': [
      0,
      {
        devDependencies: true,
        peerDependencies: true
        // optionalDependencies: true,
        // bundledDependencies: true
      }
    ]
  }
};

到了這里,關(guān)于eslint提示 xxx should be listed in the project's dependencies的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • git clone發(fā)生了remote: The project you were looking for could not be found的錯(cuò)誤

    git clone發(fā)生了remote: The project you were looking for could not be found的錯(cuò)誤

    在用git從遠(yuǎn)程倉(cāng)庫(kù)克隆項(xiàng)目到本地的時(shí)候 發(fā)生了remote: The project you were looking for could not be found的錯(cuò)誤,無(wú)法正確克隆項(xiàng)目 原因一般有兩個(gè): 一 是你沒(méi)有項(xiàng)目的權(quán)限,你可以在瀏覽器輸入你的項(xiàng)目地址,看能不能進(jìn)去,如果可以進(jìn)入,則說(shuō)明有權(quán)限,這樣的話一般錯(cuò)誤原因在

    2024年02月11日
    瀏覽(31)
  • git克隆報(bào)錯(cuò)remote: The project you were looking for could not be found的解決方法

    在clone項(xiàng)目的時(shí)候克隆失敗了,錯(cuò)誤信息如下: remote: The project you were looking for could not be found. fatal: repository \\\'?http://10.134.108.109/xxxx/snpb.git\\\' not found 原因是由于我的gitlab中有多個(gè)項(xiàng)目多個(gè)用戶,我在克隆的時(shí)候系統(tǒng)還使用我之前的用戶來(lái)連接,所以會(huì)報(bào)錯(cuò)。 解決方法: 在克隆

    2024年02月14日
    瀏覽(81)
  • The project in using an incompatible version(AGP 7.3.0) of the Android Gradle plugin Latest support

    The project in using an incompatible version(AGP 7.3.0) of the Android Gradle plugin Latest support

    The project in using an incompatible version(AGP 7.3.0) of the Android Gradle plugin Latest supported version is AGP 7.2.2 紅色方框里我剛從遠(yuǎn)程倉(cāng)庫(kù)下在下別人的項(xiàng)目時(shí)寫(xiě)的是version 7.3.0,應(yīng)該是版本太高了,查了查資料說(shuō)是7.2.1是穩(wěn)定版,就改成了7.2.1,然后刷新同步就解決這個(gè)報(bào)錯(cuò)了。

    2024年02月13日
    瀏覽(23)
  • 解決git clone代碼,報(bào)錯(cuò)remote: The project you were looking for could not be found or you don‘t

    git clone項(xiàng)目時(shí),clone失敗,錯(cuò)誤信息如下: remote: The project you were looking for could not be found or you don\\\'t have permission to view it. fatal: repository \\\'https://119.23.248.3/xxxx/pad.git\\\' not found 由于我在沒(méi)有賬號(hào)前用的同事的賬號(hào)進(jìn)行clone代碼,所以之后克隆的時(shí)候系統(tǒng)還使用我之前的用戶來(lái)連接,

    2024年02月11日
    瀏覽(24)
  • Git:git clone報(bào)錯(cuò)The project you were looking for could not be found or you don‘t have ...

    一、git clone 項(xiàng)目,報(bào)錯(cuò)如下 remote: The project you were looking for could not be found or you don\\\'t have permission to view it. fatal: repository \\\'http://xxx.xxx.com/xxx_tools/xxx-frontend.git/\\\' not found 解決問(wèn)題 在http://后增加 “用戶名@” git clone http://userName@xxx.xxx.com/xxx_tools/xxx-frontend.git 經(jīng)過(guò)測(cè)試,問(wèn)題解決了

    2024年04月17日
    瀏覽(27)
  • git clone時(shí)報(bào)錯(cuò)remote: The project you were looking for could not be found or you don‘t have permission

    git clone時(shí)報(bào)錯(cuò)remote: The project you were looking for could not be found or you don‘t have permission

    報(bào)錯(cuò)信息 remote: The project you were looking for could not be found or you don\\\'t have permission to view it. 說(shuō)明沒(méi)有該項(xiàng)目的權(quán)限 如果你登錄了別人的賬號(hào)進(jìn)入倉(cāng)庫(kù)看見(jiàn)有項(xiàng)目但是拉取不了, 說(shuō)明你去拉取這個(gè)倉(cāng)庫(kù)的賬號(hào)沒(méi)有拉取的權(quán)限。 可以先進(jìn)入憑證管理器查看賬號(hào)和密碼如果和拉取的那

    2024年02月13日
    瀏覽(46)
  • Task ‘wrapper‘ not found in project ‘:app‘.* Try:Run gradle tasks to get a list of available task.

    Task ‘wrapper‘ not found in project ‘:app‘.* Try:Run gradle tasks to get a list of available task.

    淺記錄一下今天在 gitee 導(dǎo)入 android 項(xiàng)目時(shí)產(chǎn)生的問(wèn)題~ 提示的錯(cuò)誤是:在項(xiàng)目中沒(méi)有包裝器任務(wù) 解決方式:在 build.gradle 中加上,重新 Try Again 即可!

    2024年02月16日
    瀏覽(17)
  • 【node.js】關(guān)于node.js,如何解決npm should be run outside of the Node.js REPL, in your normal shell報(bào)錯(cuò)?

    【node.js】關(guān)于node.js,如何解決npm should be run outside of the Node.js REPL, in your normal shell報(bào)錯(cuò)?

    前言,安裝node方式采用的是安裝包解壓的 報(bào)如下錯(cuò)誤: npm should be run outside of the Node.js REPL, in your normal shell 在windows環(huán)境下安裝完node,其目錄結(jié)構(gòu)下會(huì)有一個(gè)node.exe文件,運(yùn)行該工具就相當(dāng)于在cmd中執(zhí)行node命令,即進(jìn)入node開(kāi)發(fā)模式。 產(chǎn)生這個(gè)錯(cuò)誤的原因是你將npm命令運(yùn)行在

    2024年02月03日
    瀏覽(28)
  • 微信小程序調(diào)定位失敗或提示 chooseLocation:fail the api need to be declared in the requiredPrivateInfos field in

    微信小程序調(diào)定位失敗或提示 chooseLocation:fail the api need to be declared in the requiredPrivateInfos field in

    打開(kāi)manifest.json選擇源碼視圖,找到mp-weixin節(jié)點(diǎn),添加requiredPrivateInfos的配置,源碼如下圖: 搜索 微信公眾平臺(tái) 進(jìn)入之后點(diǎn)擊 開(kāi)發(fā) 下面的 開(kāi)發(fā)管理 點(diǎn)擊 接口設(shè)置 開(kāi)通你所用到的api就行了,如下圖: 當(dāng)然了 你用到了幾個(gè) 開(kāi)幾個(gè) 你也可以全部開(kāi)完都無(wú)所謂。 如果對(duì)你有所

    2024年02月11日
    瀏覽(44)
  • 報(bào)錯(cuò)-warning: in the working copy of ‘xxx.vue‘, LF will be replaced by CRLF the next time Git touc

    報(bào)錯(cuò)-warning: in the working copy of ‘xxx.vue‘, LF will be replaced by CRLF the next time Git touc

    問(wèn)題:在進(jìn)行 git add時(shí),出現(xiàn)?報(bào)錯(cuò):warning: in the working copy of \\\'src/xxx.vue\\\', LF will be replaced by CRLF the next time Git touches it 翻譯:警告:在 \\\'src/xxx.vue\\\' 的工作副本中,下次 Git 遇到 LF 時(shí),LF 將被 CRLF 替換。 知識(shí)點(diǎn): CR為回車(chē)符,LF為換行符。Windows結(jié)束一行用CRLF,Mac和Linux用LF。 co

    2024年02月08日
    瀏覽(32)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包