-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup Failed to resolve on astrojs/netlify 2.1.0 #6086
Comments
Just hit the same issue and had to rollback to a previous version. Couldn't investigate yet a proper solution due to lack of time but it looks like the issue is coming from a change in #5874 transforming a type only import of - import type { Handler } from '@netlify/functions';
+ import { builder, Handler } from '@netlify/functions'; |
Revert astrojs/netlify version from 2.1.0 to 2.0.0 due to a bug described here withastro/astro#6086
Ah, good find @HiDeoo |
I everyone I've got the same issue with my newly created Astro website when I'm trying to deploy it on Netlify. I follow these two guides: and I also revert the This is my {
"name": "@example/basics",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/netlify": "^2.0.0",
"astro": "^2.0.5"
}
} and this is all the build log from Netlify:
Bye, Alberto |
Fixing here: #6090 |
Update @astrojs/netlify version from 2.0.0 to 2.1.1 to resolve this issue with Netlify Deploy withastro/astro#6086
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:
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
The text was updated successfully, but these errors were encountered: