Cannot find module 'i18next' imported from 'astro:scripts/page-ssr.js'
Cannot find module 'i18next-fs-backend' imported from 'astro:scripts/page-ssr.js'
To Reproduce
Steps to reproduce the behavior:
Install Astro with pnpm create astro@latest
Install astro-i18next with pnpm add astro-i18next
Add configuration exactly as documented.
Run the application pnpm run dev
Expected behavior
The modules should been found in this library's dependencies.
Possible fixes
The error can be fixed by manually adding both modules to the project.
pnpm add i18nextpnpm add i18next-fs-backend
I'm new to pnpm so I don't know if perhaps I'm missing something there. I would expect the modules to be resolved from this library's dependencies as they are present in package.json.
Describe the bug
Dependencies are not found when using pnpm
Cannot find module 'i18next' imported from 'astro:scripts/page-ssr.js' Cannot find module 'i18next-fs-backend' imported from 'astro:scripts/page-ssr.js'
To Reproduce
Steps to reproduce the behavior:
pnpm create astro@latest
pnpm add astro-i18next
pnpm run dev
Expected behavior
The modules should been found in this library's dependencies.
Possible fixes
The error can be fixed by manually adding both modules to the project.
pnpm add i18next
pnpm add i18next-fs-backend
I'm new to pnpm so I don't know if perhaps I'm missing something there. I would expect the modules to be resolved from this library's dependencies as they are present in package.json.