-
Notifications
You must be signed in to change notification settings - Fork 25
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 use synchronous feature in node 18 #44
Comments
The synchronous feature is only for Workers. |
In fact, this feature can run in both the main thread of the browser and the main thread of node20.But it doesn't work in node18. Can this be considered a bug? |
I hope that the user experience of my node18 and node20 users will be consistent. |
Well there's nothing I can do about that, if Node 18 has a bug and Node 20 fixed the bug, then it just won't work in Node 18. But you shouldn't be using synchronous anyways, since it is only for Workers. And it also makes the Wasm a lot bigger in file size, and also makes it slower. |
Hello, I built a project using #43 ,But I can't use synchronous feature in node 18.
This is my project address:
https://github.com/akitaSummer/gm-crypto-wasm
You can open vitest.config.ts file and remove
environment: "jsdom"
You can run:
it will report:
But if you use node 20, this problem will not report this error.
The text was updated successfully, but these errors were encountered: