astro tried to access shikiji-core, but it isn't declared in its dependencies #9921
Closed
1 task done
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
good first issue
Good for newcomers. If you need additional guidance, feel free to post in #dev on Discord
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When I use create astro CLI to create a new project,by step 2, yarn/npm/pnpm run dev, I got the Error like this:
Error: astro tried to access shikiji-core, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Required package: shikiji-core (via "shikiji-core/package.json")
Required by: astro@npm:4.2.8 (via /Users/xxx/.yarn/berry/cache/astro-npm-4.2.8-b761f9a737-10c0.zip/node_modules/astro/dist/core/config/schema.js)
When I install "shikiji-core" myself, the error was resolved.
What's the expected result?
Start server normally
add "shikiji-core" into the package.json
Link to Minimal Reproducible Example
https://github.com/buffalo-thb/hello2
Participation
The text was updated successfully, but these errors were encountered: