Closed
Description
What version of astro
are you using?
2.0.5
Are you using an SSR adapter? If so, which one?
Netlify
What package manager are you using?
pnpm (happens with yarn as well)
What operating system are you using?
Windows
Describe the Bug
When trying to run a build with Astro 2.0.5 and astrojs/netlify 2.1.0, I get the following error:
Rollup failed to resolve import "@netlify/functions" from "{Some file path truncated}/node_modules/.pnpm/@astrojs+netlify@2.1.0_astro@2.0.5/node_modules/@astrojs/netlify/dist/netlify-functions.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
To replicate: let the stackblitz attached install, then run yarn astro build
to see the error.
This works correctly on Astro 2.0.5 and astrojs/netlify 2.0.0 so it looks like a change in astrojs/netlify 2.1.0 that caused it
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-vkntfd
Participation
- I am willing to submit a pull request for this issue.
Activity