uni-helper / vite-plugin-uni-pages

为 Vite 下的 uni-app 提供基于文件系统的路由
https://uni-helper.js.org/vite-plugin-uni-pages
MIT License
104 stars 15 forks source link

vitest 异常报错:TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined #164

Closed sunpm closed 3 months ago

sunpm commented 3 months ago

描述问题

使用 vitest 测试时出现一下报错: f898d646eb6d9ea734bbf8abdc666f0f

@uni-helper/vite-plugin-uni-pages版本回退到@^0.2.20就没有这个错误了

复现

https://github.com/sunpm/vitesse-uniapp-vue3

系统信息

System: OS: macOS 12.6.5 CPU: (4) x64 Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz Memory: 387.30 MB / 32.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.17.1 - ~/.nvm/versions/node/v18.17.1/bin/node Yarn: 1.22.17 - /usr/local/bin/yarn npm: 9.6.7 - ~/.nvm/versions/node/v18.17.1/bin/npm pnpm: 9.1.1 - ~/.nvm/versions/node/v18.17.1/bin/pnpm

使用的包管理器

pnpm

核对

ModyQyW commented 3 months ago

0.2.22