-
-
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
"TypeError: Request3 is not a constructor" upgrading adapter-netlify
from 76 to 77 - Resolved: esbuild does not work on Netlify, do not enable in netlify.toml or use netlify edge
#7839
Comments
at SK version 521 i am getting this issue https://app.netlify.com/sites/swyxkit/functions/render?scope=branch:bisectdeps cc @PH4NTOMiki |
ok as far as i know this is the status Starting version: SK 510, Adapter auto 72
References |
ok the earliest bug i can find is
so the basic premise of SK itself not breaking is fine, just the adapter is curently broken. now going to try to take a brand new SK project, add a fs/node fetch call, and deploy to netlify to see. EDIT: nope, could not repro (https://github.com/sw-yx/repro-sveltekit-adapter-bug-72). i do think i should probably not use node-fetch anymore. |
adapter-netlify
from 76 to 77 - possibly incompatible with node fetch?
ok turns out this is still a known bug - have to pin adapter netlify to 72 until this gets addressed #6440 cc @brittneypostma |
The reason it's using https://github.com/sw-yx/swyxkit/blob/ffdd14921ed058961d1b638735077fb26bbf8385/netlify.toml#L8 I recommend you remove that if you're having difficulty with |
ahh thanks. its not yet 100% working for me (https://deploy-preview-138--swyxkit.netlify.app/welcome is mysteriously 404ing) but still pretty good! thank you! |
adapter-netlify
from 76 to 77 - possibly incompatible with node fetch?adapter-netlify
from 76 to 77 - Resolved: esbuild does not work on Netlify, do not enable in netlify.toml or use netlify edge
This one seems related: #12057 Having the same issue with edge functions enabled. Dynamic requires not working. I tried to write a polyfill |
Describe the bug
I upgraded my SK version from 510 to 561 and adapter from
72 to 89 (swyxio/swyxkit@ffdd149) and it started reporting a
TypeError: Request3 is not a constructor
error:(you can see the preview here https://app.netlify.com/sites/swyxkit/functions/render?scope=deploypreview:136) causing all renders to 500.
this doesnt happen in dev, only prod.
Reproduction
swyxio/swyxkit@ffdd149
i am debugging in swyxio/swyxkit#136
Logs
System Info
Severity
annoyance
Additional Information
filing for others to find in future as i try to isolate the problem.
i am debugging in swyxio/swyxkit#136
The text was updated successfully, but these errors were encountered: