withastro / astro

The web framework for content-driven websites. ⭐️ Star to support our work!
https://astro.build
Other
46.65k stars 2.48k forks source link

🐛 BUG: Sitemap 0.20 introduces `ERR_MODULE_NOT_FOUND` #3660

Closed tusamni closed 2 years ago

tusamni commented 2 years ago

What version of astro are you using?

1.0.0-beta.48

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

NPM

What operating system are you using?

Windows 11

Describe the Bug

When running npm run build with the sitemap package it'll throw the following error:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\erik\Downloads\sites\astro-blog-portfolio\node_modules\@astrojs\sitemap\dist\generate-sitemap' imported from C:\Users\erik\Downloads\sites\astro-blog-portfolio\node_modules\@astrojs\sitemap\dist\index.js

This happens on a manual install as well as the Astro Add CLI command.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/withastro-astro-de1e1j?file=package.json

Participation

felixsanz commented 2 years ago

Note: This seems to be working fine with sitemap 0.1.2 and Astro b.44 (the previous version)