Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue3 模板 .eslintrc 中的 "taro/vue3" extends 不存在 #7814

Closed
Discreater opened this issue Oct 10, 2020 · 0 comments · Fixed by #7843
Closed

vue3 模板 .eslintrc 中的 "taro/vue3" extends 不存在 #7814

Discreater opened this issue Oct 10, 2020 · 0 comments · Fixed by #7843
Labels
F-vue3 Framework - Vue 3 T-h5 Target - 编译到 H5 V-3 Version - 3.x
Milestone

Comments

@Discreater
Copy link

相关平台

H5

浏览器版本: 无****小程序基础库: 无
使用框架: Vue 3

复现步骤

taro init

期望结果

eslint 运行正常

实际结果

以下为 vscode eslint 插件错误信息

[Info  - 上午1:14:50] ESLint library loaded from: D:\learn\taro\vue3-test\node_modules\eslint\lib\api.js
(node:3136) UnhandledPromiseRejectionWarning: Error: Failed to load config "taro/vue3" to extend from.
Referenced from: D:\learn\taro\vue3-test\.eslintrc
    at configMissingError (D:\learn\taro\vue3-test\node_modules\eslint\lib\cli-engine\config-array-factory.js:265:9)
    at ConfigArrayFactory._loadExtendedShareableConfig (D:\learn\taro\vue3-test\node_modules\eslint\lib\cli-engine\config-array-factory.js:826:23)
    at ConfigArrayFactory._loadExtends (D:\learn\taro\vue3-test\node_modules\eslint\lib\cli-engine\config-array-factory.js:731:25)
    at ConfigArrayFactory._normalizeObjectConfigDataBody (D:\learn\taro\vue3-test\node_modules\eslint\lib\cli-engine\config-array-factory.js:660:25)
    at _normalizeObjectConfigDataBody.next (<anonymous>)
    at ConfigArrayFactory._normalizeObjectConfigData (D:\learn\taro\vue3-test\node_modules\eslint\lib\cli-engine\config-array-factory.js:596:20)
    at _normalizeObjectConfigData.next (<anonymous>)
    at createConfigArray (D:\learn\taro\vue3-test\node_modules\eslint\lib\cli-engine\config-array-factory.js:340:25)
    at ConfigArrayFactory.loadInDirectory (D:\learn\taro\vue3-test\node_modules\eslint\lib\cli-engine\config-array-factory.js:433:16)
    at CascadingConfigArrayFactory._loadConfigInAncestors (D:\learn\taro\vue3-test\node_modules\eslint\lib\cli-engine\cascading-config-array-factory.js:328:46)
(node:3136) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3136) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

环境信息

  Taro CLI 3.0.14 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 12.16.0 - G:\Program Files\nodejs\node.EXE
      Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
      npm: 6.13.4 - G:\Program Files\nodejs\npm.CMD

补充信息

master 分支上的 eslint-config-taro 中存在 vue3.js 这个文件,但是目前发布版本(3.0.14)中不存在这个文件

@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Oct 10, 2020
@Chen-jj Chen-jj added this to the 3.0.12 milestone Oct 12, 2020
@Chen-jj Chen-jj linked a pull request Oct 15, 2020 that will close this issue
9 tasks
@ZakaryCode ZakaryCode moved this to Done in H5 Apr 10, 2023
@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants