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

报错路径必须接受string #19

Closed
Richard-Zhang1019 opened this issue May 3, 2023 · 6 comments
Closed

报错路径必须接受string #19

Richard-Zhang1019 opened this issue May 3, 2023 · 6 comments

Comments

@Richard-Zhang1019
Copy link

使用的时候传的都是字符串
可能是版本问题 之前使用的是1.0.0-alpha.69是没有问题的 升级到1.0.0-alpha.75之后就会启动时报这个错
image
image

@flingyp
Copy link
Owner

flingyp commented May 3, 2023

感谢反馈,有空会处理。谢谢

@flingyp
Copy link
Owner

flingyp commented May 3, 2023

@Richard-Zhang1019 可否可以提供一个最小复现的代码仓库?

我将项目中example的vitepress升级到最新版本后并没有发现问题。

@Richard-Zhang1019
Copy link
Author

@Richard-Zhang1019 可否可以提供一个最小复现的代码仓库?

我将项目中example的vitepress升级到最新版本后并没有发现问题。

那可能是我自己这里的问题
https://github.com/lucky-design-org/lucky-design/tree/fix
我在fix分支的改动 使用最新版本的vitepress时 pnpm run dev 会报错提示
image

@flingyp
Copy link
Owner

flingyp commented May 4, 2023

@Richard-Zhang1019 这和Vitepress版本无关,或许是Vitepress的Bug

我在调试的时候发现如下问题

@vitepress-demo-preview/plugin 需要使用到Vitepress提供的env.path变量,但是我在调试的时候发现如果文档中配置了Local Search时,env 中会丢失第一张截图的三个变量。

image

image

@Richard-Zhang1019
Copy link
Author

@Richard-Zhang1019 这和Vitepress版本无关,或许是Vitepress的Bug

我在调试的时候发现如下问题

@vitepress-demo-preview/plugin 需要使用到Vitepress提供的env.path变量,但是我在调试的时候发现如果文档中配置了Local Search时,env 中会丢失第一张截图的三个变量。

image

image

感谢您的回复

@flingyp
Copy link
Owner

flingyp commented May 4, 2023

The question was built at vitepress and you can found it at #2313

@flingyp flingyp closed this as completed May 4, 2023
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