treefarmstudio / astro-sanity

This is a helper package to integrate Astro and Sanity
https://www.npmjs.com/package/astro-sanity
MIT License
102 stars 10 forks source link

npx command not installing astro-sanity #20

Open randyyaj opened 1 year ago

randyyaj commented 1 year ago

I recently upgraded some packages including astro-sanity however when I tried building my app I am running into an issue.

[astro] Unable to load /home/user/Documents/My Projects/typescript/HSP/website/astro.config.mjs

 error   Failed to resolve entry for package "astro-sanity". The package may have incorrect main/module/exports specified in its package.json.

I tried to reinstall astro-sanity but for some reason after the 1.1.4 release I am now seeing this issue whenever I am trying to install it.

$ npx astro add astro-sanity
⚠ astro-sanity is not an official Astro package. Use at your own risk!
✔ Continue? … yes
✖ astro-sanity doesn't appear to be an integration or an adapter. Find our official integrations at https://astro.build/integrations
helios63 commented 1 year ago

I have the same error here. Waiting for any workaround.