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

Unable to upgrade to Astro v4 / Starlight 0.15.0 due to plugin issue #2293

Closed
huijing opened this issue Dec 13, 2023 · 0 comments · Fixed by #2677
Closed

Unable to upgrade to Astro v4 / Starlight 0.15.0 due to plugin issue #2293

huijing opened this issue Dec 13, 2023 · 0 comments · Fixed by #2677
Assignees
Labels
pkg: documentation Changes in the documentation package. type: documentation (archived) Improvements or additions to documentation

Comments

@huijing
Copy link
Contributor

huijing commented Dec 13, 2023

The recent Astro version bump which updates to use Vite 5 is causing some issue with our https://github.com/AlexLakatos/astro-graphql-plugin.
This is blocking #2288 and #2268

> documentation@0.0.1 start /Users/huijing/Sites/interledger/rafiki/packages/documentation
> astro dev

9:41:01 AM [vite] Error when evaluating SSR module /@fs/Users/huijing/Sites/interledger/rafiki/node_modules/.pnpm/astro-graphql-plugin@0.1.0_graphql@16.8.1/node_modules/astro-graphql-plugin/src/getRelativeTypeUrl.ts:
|- TypeError: __vite_ssr_import_1__.Slugger is not a constructor
    at /Users/huijing/Sites/interledger/rafiki/node_modules/.pnpm/astro-graphql-plugin@0.1.0_graphql@16.8.1/node_modules/astro-graphql-plugin/src/getRelativeTypeUrl.ts:10:17
    at async instantiateModule (file:///Users/huijing/Sites/interledger/rafiki/node_modules/.pnpm/vite@5.0.7/node_modules/vite/dist/node/chunks/dep-wTaJK0Jt.js:50203:9)

9:41:01 AM [vite] Error when evaluating SSR module /@fs/Users/huijing/Sites/interledger/rafiki/node_modules/.pnpm/astro-graphql-plugin@0.1.0_graphql@16.8.1/node_modules/astro-graphql-plugin/src/index.ts: failed to import "/@fs/Users/huijing/Sites/interledger/rafiki/node_modules/.pnpm/astro-graphql-plugin@0.1.0_graphql@16.8.1/node_modules/astro-graphql-plugin/src/getRelativeTypeUrl.ts"
|- TypeError: __vite_ssr_import_1__.Slugger is not a constructor
    at /Users/huijing/Sites/interledger/rafiki/node_modules/.pnpm/astro-graphql-plugin@0.1.0_graphql@16.8.1/node_modules/astro-graphql-plugin/src/getRelativeTypeUrl.ts:10:17
    at async instantiateModule (file:///Users/huijing/Sites/interledger/rafiki/node_modules/.pnpm/vite@5.0.7/node_modules/vite/dist/node/chunks/dep-wTaJK0Jt.js:50203:9)

9:41:01 AM [vite] Error when evaluating SSR module /Users/huijing/Sites/interledger/rafiki/packages/documentation/astro.config.mjs: failed to import "/@fs/Users/huijing/Sites/interledger/rafiki/node_modules/.pnpm/astro-graphql-plugin@0.1.0_graphql@16.8.1/node_modules/astro-graphql-plugin/src/index.ts"
|- TypeError: __vite_ssr_import_1__.Slugger is not a constructor
    at /Users/huijing/Sites/interledger/rafiki/node_modules/.pnpm/astro-graphql-plugin@0.1.0_graphql@16.8.1/node_modules/astro-graphql-plugin/src/getRelativeTypeUrl.ts:10:17
    at async instantiateModule (file:///Users/huijing/Sites/interledger/rafiki/node_modules/.pnpm/vite@5.0.7/node_modules/vite/dist/node/chunks/dep-wTaJK0Jt.js:50203:9)

[astro] Unable to load your Astro config

__vite_ssr_import_1__.Slugger is not a constructor
  Stack trace:
    at /Users/huijing/Sites/interledger/rafiki/node_modules/.pnpm/astro-graphql-plugin@0.1.0_graphql@16.8.1/node_modules/astro-graphql-plugin/src/getRelativeTypeUrl.ts:10:17
 ELIFECYCLE  Command failed with exit code 1.
@huijing huijing added pkg: documentation Changes in the documentation package. type: documentation (archived) Improvements or additions to documentation labels Dec 13, 2023
@github-project-automation github-project-automation bot moved this to Backlog in Rafiki Dec 13, 2023
@huijing huijing assigned huijing and unassigned AlexLakatos Apr 24, 2024
@huijing huijing moved this from Backlog to In Progress in Rafiki Apr 25, 2024
@huijing huijing moved this from In Progress to Ready for Review in Rafiki Apr 25, 2024
@github-project-automation github-project-automation bot moved this from Ready for Review to Done in Rafiki Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: documentation Changes in the documentation package. type: documentation (archived) Improvements or additions to documentation
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants