SharpGoldWaveMaker / sutras

vitepress plugin for quickly build demo-centric technical documentation
https://sharpgoldwavemaker.github.io/sutras.docs/
MIT License
10 stars 0 forks source link

[BUG] Path parsing error #7

Closed NoraH1to closed 1 month ago

NoraH1to commented 2 months ago

Environment

What happened

## Demo

<demo path="./demo/basic-usage.vue" />

Then I got the error:

Fail to resolve import "./demo\basic-usage.vue" from "xxx/yyy/index.md"
NoraH1to commented 2 months ago

Wrap with the normalize function I guess

https://github.com/SharpGoldWaveMaker/sutras/blob/396b17d1bed463551f1d1d5dd093779d6a63a98c/plugin/src/vite/parse/demo.ts#L62

SharpGoldWaveMaker commented 2 months ago

Wrap with the normalize function I guess

https://github.com/SharpGoldWaveMaker/sutras/blob/396b17d1bed463551f1d1d5dd093779d6a63a98c/plugin/src/vite/parse/demo.ts#L62

Thanks for your feedback, I will conduct a complete test of the win environment

SharpGoldWaveMaker commented 1 month ago

Wrap with the normalize function I guess

https://github.com/SharpGoldWaveMaker/sutras/blob/396b17d1bed463551f1d1d5dd093779d6a63a98c/plugin/src/vite/parse/demo.ts#L62

I have resolved the issue. Please:

1.Delete the pnpm-lock.json file 2.Upgrade the relevant packages: pnpm upgrade @sgwm-sutras/plugin@latest @sgwm-sutras/ui@latest