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

pnpm run test. 运行单元测试会报错 #32

Open
lihe6666 opened this issue Jun 22, 2024 · 2 comments
Open

pnpm run test. 运行单元测试会报错 #32

lihe6666 opened this issue Jun 22, 2024 · 2 comments

Comments

@lihe6666
Copy link

image

我找了好久,没找到什么原因。但是在报错信息里看,是(path、还是AutoImport
我的理解可能在AutoImport里引入文件或路径给传了个空值?

@lihe6666 lihe6666 changed the title pnpm run test. 运行单元测试什么报错 pnpm run test. 运行单元测试会报错 Jun 22, 2024
@lihe6666
Copy link
Author

接下来我将pnpm 更新到9.4.0, 删除node_modules 重新安装。

image

提示没有vuex,我再安装vuex。

image

就可以运行了。

@Ares-Chang
Copy link
Owner

这应该是 uniapp 新版本包的问题,可以暂时把 package.json 回退到上一个版本,可以避免这个问题

uniapp 仓库 已经有这个问题的提交,

我最近比较忙,暂时没有时间处理是否有解决的方法,如果你愿意帮忙很欢迎,否则我可能会推迟一点处理

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