Skip to content

Windows 开发环境无法通过 eslint:import/no-unresolved #621

Answered by qwqcode
inkss asked this question in Q&A
Discussion options

You must be logged in to vote

eslint-import-resolver-typescript 依赖降级到 2.7.0 就正常了 🤣

我看到它的 Release notes:use get-tsconfig to replace tsconfig-paths (78a08e0)

可能新的 https://github.com/privatenumber/get-tsconfig 在 eslint-import-resolver-typescript 中的集成在 win 环境下有 bug。暂时还没明确具体原因。但是降级到 2.7.0 就能跑了

ui\package.json

-    "eslint-import-resolver-typescript": "3.6.0",
+    "eslint-import-resolver-typescript": "2.7.0",

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
5 replies
@qwqcode
Comment options

@qwqcode
Comment options

@inkss
Comment options

@qwqcode
Comment options

Answer selected by qwqcode
@inkss
Comment options

Comment options

You must be logged in to vote
4 replies
@inkss
Comment options

@qwqcode
Comment options

@inkss
Comment options

@qwqcode
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants