QC2168 / vite-plugin-vitepress-auto-sidebar

The vite plugin that automatically generates sidebar data by scanning directories, based on vitepress
MIT License
85 stars 12 forks source link

Not working in the latest version (1.0.0-rc.10) #11

Closed javinba closed 10 months ago

javinba commented 1 year ago

Hello!

First of all thanks for the contribution.

I'm trying to use the plugin from version 1.0.0-rc.10 and I'm encountering with

npm ERR! While resolving: undefined@undefined
npm ERR! Found: vitepress@1.0.0-rc.10
npm ERR! node_modules/vitepress
npm ERR! vitepress@"^1.0.0-rc.10" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer vitepress@"1.0.0-alpha.49" from vite-plugin-vitepress-auto-sidebar@1.6.0

Could you update it so that it can be used in the latest versions of vitepress?

Thanks, best regards.

QC2168 commented 12 months ago

I tried the plugin, it is working, can you provide a demo repo? @javinba

shimizu1995 commented 11 months ago

Hello!

First, I wanted to say that this is a fantastic plugin. Thank you for developing it!

I noticed an issue regarding peerDependencies. Maybe changing it from:

"vitepress": "1.0.0-alpha.49"

to:

"vitepress": "^1.0.0"

will fix it.

QC2168 commented 11 months ago

Thank you for your reminder! I have removed duplicate deps and updated the vite version. @shimizu1995