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

使用 vscode 工作区的方式单独开发app子项目,提示Parsing error: ESLint was configured...... #5102

Closed
z91300 opened this issue Dec 11, 2024 · 2 comments

Comments

@z91300
Copy link

z91300 commented Dec 11, 2024

如果想使用 vscode 工作区的方式单独开发app子项目,大佬能给点思路如何操作吗?目的就是为了使开发更专注方便。

工作区目录示例

-- 总工程
---- apps
------ A 项目

-- A项目
---- src
-------- views

目前尝试后任意ts文件都会eslint报错

Parsing error: ESLint was configured to run on `<tsconfigRootDir>/src\globals.d.ts` using `parserOptions.project`: <tsconfigRootDir>/tsconfig.node.json
However, that TSConfig does not include this file. Either:
- Change ESLint's list of included files to not include this file
- Change that TSConfig to include this file
- Create a new TSConfig that includes this file and include it in your parserOptions.project
See the typescript-eslint docs for more info: https://typescript-eslint.io/troubleshooting/typed-linting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-fileeslint
@z91300 z91300 changed the title 如果想单独开发app,能给点思路如何操作吗?tsconfig如何与大仓解除关联 使用 vscode 工作区的方式单独开发app子项目,提示Parsing error: ESLint was configured...... Dec 11, 2024
@z91300
Copy link
Author

z91300 commented Dec 11, 2024

看到有类似问题提出: #4798 ,或许可以考虑 每个项目单独处理一份 tsconfig ,不与大仓做关联,但我没有思路,我为此重写了单独子项目里的 tsconfig 内容,也还是没有解决报错的问题。求助各位大佬,应该如何处理这种情况,不然项目一多,目录树一层层嵌套下去看着实在是不方便

@likui628
Copy link
Collaborator

#4798 (comment)

tsconfig依赖大仓内的包,目前单独的app基本是开发不了,需要依赖仓库。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants