After adding from npm, the type is not identified.
Closed this issue · 6 comments
ktym4a commented
florian-lefebvre commented
Is the repo public? Without the code, a bit hard to say!
ktym4a commented
yes it is.
https://github.com/ktym4a/astro-page-insight
florian-lefebvre commented
I'll have a look at it later today
florian-lefebvre commented
Looking at this repro (https://stackblitz.com/edit/withastro-astro-cag46f?file=astro.config.mjs), it seems that this does not occur with all package managers:
- pnpm: works
- npm: broken
- yarn: unknown
ktym4a commented
I tested and seems that
- pnpm: works
- npm: broken
- yarn: broken
florian-lefebvre commented
@Princesseuh do you know why that happens? I guess I must be missing some fields in package.json
? https://github.com/florian-lefebvre/astro-integration-template/blob/main/package/package.json