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

Error: Couldn‘t find preset “es2015“ relative to directory

這篇具有很好參考價(jià)值的文章主要介紹了Error: Couldn‘t find preset “es2015“ relative to directory。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

vue引入element-ui,運(yùn)行時(shí)報(bào)了這個(gè)錯(cuò)誤

Module build failed: Error: Couldn't find preset "es2015" relative to directory "D:\\360MoveData\\Users\\Administrator\\Desktop\\新建文件夾\\henge-test"
    at D:\360MoveData\Users\Administrator\Desktop\新建文件夾\henge-test\node_modules\babel-core\lib\transformation\file\options\option-manager.js:293:19
    at Array.map (<anonymous>)
    at OptionManager.resolvePresets (D:\360MoveData\Users\Administrator\Desktop\新建文件夾\henge-test\node_modules\babel-core\lib\transformation\file\options\option-manager.js:275:20)
    at OptionManager.mergePresets (D:\360MoveData\Users\Administrator\Desktop\新建文件夾\henge-test\node_modules\babel-core\lib\transformation\file\options\option-manager.js:264:10)
    at OptionManager.mergeOptions (D:\360MoveData\Users\Administrator\Desktop\新建文件夾\henge-test\node_modules\babel-core\lib\transformation\file\options\option-manager.js:249:14)
    at OptionManager.init (D:\360MoveData\Users\Administrator\Desktop\新建文件夾\henge-test\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12)
    at File.initOptions (D:\360MoveData\Users\Administrator\Desktop\新建文件夾\henge-test\node_modules\babel-core\lib\transformation\file\index.js:212:65)
    at new File (D:\360MoveData\Users\Administrator\Desktop\新建文件夾\henge-test\node_modules\babel-core\lib\transformation\file\index.js:135:24)    at Pipeline.transform (D:\360MoveData\Users\Administrator\Desktop\新建文件夾\henge-test\node_modules\babel-core\lib\transformation\pipeline.js:46:16)
    at transpile (D:\360MoveData\Users\Administrator\Desktop\新建文件夾\henge-test\node_modules\babel-loader\lib\index.js:50:20)
    at Object.module.exports (D:\360MoveData\Users\Administrator\Desktop\新建文件夾\henge-test\node_modules\babel-loader\lib\index.js:173:20)     

 @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

按照element-ui中的步驟 把.babelrc 文件內(nèi)容從

{
  "presets": [
    ["env", {
      "modules": false,
      "targets": {
        "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
      }
    }],
    "stage-2"
  ],
  "plugins": ["transform-vue-jsx", "transform-runtime"]
}

更改為了

{
  "presets": [["es2015", { "modules": false }]],
  "plugins": [
    [
      "component",
      {
        "libraryName": "element-ui",
        "styleLibraryName": "theme-chalk"
      }
    ]
  ]
}

然后運(yùn)行時(shí)就報(bào)了這個(gè)問(wèn)題

解決方案:
安裝es2015 工具文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-665028.html

npm install --save-dev babel-preset-es2015

到了這里,關(guān)于Error: Couldn‘t find preset “es2015“ relative to directory的文章就介紹完了。如果您還想了解更多內(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)文章

  • Jenkins 構(gòu)建報(bào)錯(cuò):Couldn‘t find any revision to build. Verify the repository and branch configuration for

    Jenkins 構(gòu)建報(bào)錯(cuò):Couldn‘t find any revision to build. Verify the repository and branch configuration for

    Couldn’t find any revision to build. Verify the repository and branch configuration for this job. Jenkins調(diào)用git時(shí)用了默認(rèn)的*/master,而gitlab這邊使用的是main 將Jenkins設(shè)置成main即可

    2024年02月15日
    瀏覽(51)
  • ERROR Failed to compile with 2 errors These relative modules were not found:

    ERROR Failed to compile with 2 errors These relative modules were not found:

    ?提示在./node_modules/flatgeobuf/lib/mjs/packedrtree.js中找不到./config.js ./node_modules/flatgeobuf/lib/mjs/generic/featurecollection.js 中找不到../logger.js 如果是用vscode編寫(xiě),按住ctrl+報(bào)錯(cuò)文件名 進(jìn)入到該報(bào)錯(cuò)文件 根據(jù)引入? import Config from \\\'./config.js\\\' 去尋找路徑\\\'./\\\'下有沒(méi)有config.js文件 發(fā)現(xiàn)只有\(zhòng)\\"Conf

    2024年02月02日
    瀏覽(25)
  • Unable to initialize Git; AggregateError(2) Error: Unable to find git Error: Unable to find git

    MacBook Pro m1 升級(jí)系統(tǒng)到13版本后,系統(tǒng)中原有的git突然就不能用了,,,輸入git -v 既然打印不到版本號(hào)???使用which git 是能打印到配置路徑的,,, 解決方案: stack overfolw 帖子地址 然后會(huì)跳出一個(gè)彈窗讓你安裝xcode-select 點(diǎn)擊安裝,自動(dòng)安裝完成,控制臺(tái)再輸入git -v就能

    2024年02月12日
    瀏覽(97)
  • docker: ERROR: Couldn‘t connect to Docker daemon at http+docker://localhost

    環(huán)境: linuxt centos 7.x 如下圖, 使用docker-compose時(shí),提示錯(cuò)誤 一般是2種問(wèn)題: 1、docker未啟動(dòng): 啟動(dòng)docker 2、 當(dāng)前用戶不在docker用戶組 將當(dāng)前用戶加入docker組 通過(guò)【重新登錄shell】或者【切換為root再切換成當(dāng)前用戶】,使修改生效。 說(shuō)明 : 建議使用官方方法安裝docker。

    2024年02月09日
    瀏覽(20)
  • 啟動(dòng)docker時(shí):ERROR: Couldn’t connect to Docker daemon at http+docker://localunixsocket - is it running?

    出現(xiàn)這個(gè)問(wèn)題是因?yàn)楫?dāng)前用戶權(quán)限的問(wèn)題,只要將當(dāng)前用戶加入docker組就可以啦~ 解決方案: 提示:可以先執(zhí)行3、4步看是否可行

    2024年02月16日
    瀏覽(29)
  • Error: Unable to find a match: mysql-community-server

    Error: Unable to find a match: mysql-community-server

    問(wèn)題一[root@lsN4FrHvLd mysql]# yum install mysql-community-server Repository extras is listed more than once in the configuration Last metadata expiration check: 0:15:07 ago on Mon 18 Jul 2022 08:32:24 AM CST. No match for argument: mysql-community-server Error: Unable to find a match: mysql-community-server ? 今天使用centos8.5安裝MySQL出現(xiàn)如上錯(cuò)

    2023年04月09日
    瀏覽(20)
  • Flutter獲取依賴報(bào)錯(cuò)Got TLS error trying to find package xxx

    獲取依賴包失敗 之前flutter自動(dòng)獲取依賴包都是正常的,今天突然卡住了,一致獲取不到,嘗試替換鏡像也照樣沒(méi)有用,而且所有鏡像均能夠通過(guò)瀏覽器在國(guó)內(nèi)訪問(wèn)。最終通過(guò)https://github.com/dart-lang/pub/issues/1882#issuecomment-415588527 這個(gè)issue得到順利解決,故留下筆記。 以清華鏡像

    2024年02月09日
    瀏覽(23)
  • Flutter Got TLS error trying to find package xxx at https://pub.dev.

    在學(xué)習(xí)Flutter的時(shí)候,遇到需要安裝flutter_inappwebview依賴包,發(fā)現(xiàn)無(wú)法安裝,控制臺(tái)提示 Got TLS error trying to find package flutter_inappwebview at https://pub.dev. 經(jīng)過(guò)網(wǎng)上查找資料,發(fā)現(xiàn): 如果在中國(guó)安裝flutter,配置國(guó)內(nèi)鏡像是很好的解決辦法。 到此,解決方法找到。 配置本地環(huán)境方法

    2024年02月14日
    瀏覽(24)
  • .net core 3.1 出現(xiàn) HTTP Error 500.31 - ANCM Failed to Find Native Dependencies

    .net core 3.1 出現(xiàn) HTTP Error 500.31 - ANCM Failed to Find Native Dependencies

    我已經(jīng)在服務(wù)器安裝了dotnet-runtime-3.1.20-win-x64 和dotnet-hosting-3.1.20-win 但部署3.1項(xiàng)目遇到500.13錯(cuò)誤 HTTP Error 500.31 - ANCM Failed to Find Native Dependencies Common solutions to this issue: The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found. Troubleshooting steps: Check the system event log fo

    2024年02月05日
    瀏覽(46)
  • CMake Error: CMake was unable to find a build program corresponding to “MinGW Makefiles“.解決方案(親測(cè)有效)

    CMake Error: CMake was unable to find a build program corresponding to “MinGW Makefiles“.解決方案(親測(cè)有效)

    CMake編譯OpenCV4.6.0過(guò)程中一直出錯(cuò): CMake Error: CMake was unable to find a build program corresponding to “MinGW Makefiles”. CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. 解決方案如下: 將CMAKE_MAKE_PROGRAM項(xiàng)后面的路徑設(shè)置為Qt安裝路徑下的路徑。例如:D:/Qt/Qt5.12.12/Tools/mingw7

    2024年02月15日
    瀏覽(92)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

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

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包