Upgrade from 4.16.16 -> 5.0.1 broke
Closed this issue · 1 comments
jamesli2021 commented
Astro Info
Before upgrade:
astro info
Astro v4.16.16
Node v20.16.0
System macOS (arm64)
Package Manager npm
Output static
Adapter none
Integrations @astrojs/starlight
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Ran npx @astrojs/upgrade
after npm create astro@latest
crearing new project, broke on first run.
1:46:40 PM [vite] (ssr) Error when evaluating SSR module /Users/s/Documents/astro5/astro.config.mjs:
|- Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './jsx/renderer.js' is not defined by "exports" in /Users/s/Documents/astro5/node_modules/astro/package.json imported from /Users/s/Documents/astro5/node_modules/@astrojs/starlight/node_modules/@astrojs/mdx/dist/index.js
at exportsNotFound (node:internal/modules/esm/resolve:304:10)
at packageExportsResolve (node:internal/modules/esm/resolve:651:9)
at packageResolve (node:internal/modules/esm/resolve:837:14)
at moduleResolve (node:internal/modules/esm/resolve:927:18)
at defaultResolve (node:internal/modules/esm/resolve:1169:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:87:39)
at link (node:internal/modules/esm/module_job:86:36)
[astro] Unable to load your Astro config
Package subpath './jsx/renderer.js' is not defined by "exports" in /Users/s/Documents/astro5/node_modules/astro/package.json imported from /Users/s/Documents/astro5/node_modules/@astrojs/starlight/node_modules/@astrojs/mdx/dist/index.js
Stack trace:
at exportsNotFound (node:internal/modules/esm/resolve:304:10)
at packageResolve (node:internal/modules/esm/resolve:837:14)
at defaultResolve (node:internal/modules/esm/resolve:1169:11)
at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
at ModuleWrap.<anonymous> (node:internal/module
What's the expected result?
NA
Link to Minimal Reproducible Example
NA
Participation
- I am willing to submit a pull request for this issue.
Princesseuh commented
Starlight does not support Astro 5 yet, follow withastro/starlight#2612 for more information!