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

重新安装依赖,ts错误 #343

Closed
nead3009 opened this issue Nov 26, 2024 · 3 comments
Closed

重新安装依赖,ts错误 #343

nead3009 opened this issue Nov 26, 2024 · 3 comments

Comments

@nead3009
Copy link

nead3009 commented Nov 26, 2024

详细描述你的问题

nextjs + vue3项目,删除项目node_modules和yarn.lock,重新安装依赖,开发环境yarn start运行项目后(没有用vite)大量ts错误,问下这个怎么解决

image
image
image
image

期望的结果

当前使用的版本

warning package.json: "dependencies" has dependency "eslint" with range "^8.35.0" that collides with a dependency in "devDependencies" of the same name with version "^8.34.0"
warning [email protected]: "dependencies" has dependency "eslint" with range "^8.35.0" that collides with a dependency in "devDependencies" of the same name with version "^8.34.0"
warning Filtering by arguments is deprecated. Please use the pattern option instead.
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
│ └─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
└─ [email protected]

@zhangyuang
Copy link
Owner

默认example没有问题,可以升级typescript到5.x试试

@nead3009
Copy link
Author

默认example没有问题,可以升级typescript到5.x试试

升级了问题依旧存在,还有其他方法么

@zhangyuang
Copy link
Owner

提供复现

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

2 participants