Fevol / starlight-site-graph

Starlight plugin adding a graph component to the site's right-sidebar
https://fevol.github.io/starlight-site-graph/
MIT License
13 stars 0 forks source link

npm error upon attempting to install plugin #1

Closed victorkane closed 5 days ago

victorkane commented 5 days ago

Current package.json:

{
  "name": "pp-online",
  "type": "module",
  "version": "0.0.1",
  "scripts": {
    "dev": "astro dev",
    "start": "astro dev",
    "build": "astro check && astro build",
    "preview": "astro preview",
    "astro": "astro"
  },
  "dependencies": {
    "@astrojs/check": "^0.9.4",
    "@astrojs/starlight": "^0.29.0",
    "@astrojs/starlight-tailwind": "^2.0.3",
    "@astrojs/tailwind": "^5.1.0",
    "astro": "^4.16.10",
    "sharp": "^0.32.5",
    "starlight-blog": "^0.14.1",
    "tailwindcss": "^3.4.4",
    "typescript": "^5.6.3"
  }
}

Getting the following error upon following this plugin's installation instructions:

$ npm i starlight-site-graph
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: starlight-site-graph@0.1.8
npm error Found: @astrojs/starlight@0.29.0
npm error node_modules/@astrojs/starlight
npm error   peer @astrojs/starlight@">=0.9.0" from @astrojs/starlight-tailwind@2.0.3
npm error   node_modules/@astrojs/starlight-tailwind
npm error     @astrojs/starlight-tailwind@"^2.0.3" from the root project
npm error   peer @astrojs/starlight@">=0.28.3" from starlight-blog@0.14.1
npm error   node_modules/starlight-blog
npm error     starlight-blog@"^0.14.1" from the root project
npm error   1 more (the root project)
npm error
npm error Could not resolve dependency:
npm error peerOptional @astrojs/starlight@"^0.28.2" from starlight-site-graph@0.1.8
npm error node_modules/starlight-site-graph
npm error   starlight-site-graph@"*" from the root project
npm error
npm error Conflicting peer dependency: @astrojs/starlight@0.28.6
npm error node_modules/@astrojs/starlight
npm error   peerOptional @astrojs/starlight@"^0.28.2" from starlight-site-graph@0.1.8
npm error   node_modules/starlight-site-graph
npm error     starlight-site-graph@"*" from the root project
Fevol commented 5 days ago

Thanks for the issue report, I normally use bun, and it never gave a warning about this version mismatch. It seems like I accidentally used ^ instead of >= for the versioning. For now, you can use npm i starlight-site-graph --legacy-peer-deps to install the package. I'll bring out a new version momentarily which also fixes this version specifier.

Fevol commented 5 days ago

Okay, I can confirm now that with version 0.1.9 this issue should be fixed. Thanks again for the report!