-
Notifications
You must be signed in to change notification settings - Fork 147
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
http::Request::send
panics in Node with wasm-pack
#484
Comments
http::Request::send
panics in Nodehttp::Request::send
panics in Node with wasm-pack
I am getting similar kind of error for console package as well. Alert works without any issue but as soon as I add and use console or net package. it panics and doesn't work with my react project.
It shows this kind of cryptic message. Any help would be really appreciated. |
@kunjee17 Without more context I can only guess, but that looks like your wasm module declares a function import and the JS environment is giving it something that is not a function. I recommend opening a separate issue and providing a full example. |
hey, @littlebenlittle thanks for replying. Here is demo repo. I am basically trying to combine Once everything installed this should make it work |
Resolved by #474 |
@littlebenlittle Don't kill me for this. But my issue solved by deleting |
Describe the Bug
Calls to
http::Request::send
reach the panic condition here in NodeJS environment.Steps to Reproduce
Full crate:
gloo_node.tar.gz
Run:
Node Version: v21.6.1
Code:
Additional Info
Seems to be the result of undefined
WorkerGlobalScope
. Node v21+ definesfetch
on the global context (ref) so something like this might work?The text was updated successfully, but these errors were encountered: