-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Cannot redefine property: fetch #3356
Comments
@Rich-Harris Could you please bump adapter-node to use kit v231? |
#3357 that fixes this has been merged. Closing this.
I'm not sure what you mean. adapter-node doesn't have a hard version on kit? |
That's right, but since adapter-node was built and published before #3357 was merged, the dist still contains the old |
Ah I see. Looks like adapter vercel, node and netlify builds based on kit. I'll make a changeset for them so they get re-released. (#3377) |
Describe the bug
I'm trying to import a built svelte-kit site within another one, and it is not possible because importing
import { handler } from 'sub-site/build/handler'
has side-effects, namely calling__fetch_polyfill
.Reproduction
Logs
System Info
Severity
annoyance
Additional Information
I'll submit a PR in a few minutes that fixes this issue, the solution is to add
configurable: true
to all definitions here:kit/packages/kit/src/install-fetch.js
Lines 4 to 23 in f92c3e2
The text was updated successfully, but these errors were encountered: