denoland / deno-astro-adapter

A Deno adapter for running Astro applications on the Deno runtime.
https://npm.im/@deno/astro-adapter
MIT License
84 stars 19 forks source link

[ERR_MODULE_NOT_FOUND] Cannot find module ... zod-to-json-schema ... #30

Open endigma opened 1 month ago

endigma commented 1 month ago

Following the instructions here trying to get Astro working with Deno 2, the deno install command functions correctly but deno task build fails due to the error in the title.

[ERR_MODULE_NOT_FOUND] Cannot find module 'file:///project//node_modules/.deno/zod-to-json-schema@3.23.4/node_modules/zod-to-json-schema/dist/esm/parsers/branded' imported from 'file:///project//node_modules/.deno/zod-to-json-schema@3.23.4/node_modules/zod-to-json-schema/dist/esm/parsers/record.js'
  Stack trace:
    at async runCommand (file:///project//node_modules/.deno/astro@4.16.7/node_modules/astro/dist/cli/index.js:137:23)

This is interesting as https://deno.com/blog/v2.0 says:

Finally, you can use Deno 2 with your favorite JavaScript framework. Deno 2 supports Next.js, --> Astro <--, Remix, Angular, SvelteKit, QwikCity and many other frameworks.

So, in what context does this work or what steps do I need to take to make it work?