Open Chriscbr opened 1 year ago
https://github.com/patriksimek/vm2/issues/484
Adding Uint8Array
to the global sandbox might resolve this
I've marked this as p2, because there's a workaround (thanks @Chriscbr 🙏).
However @MarkMcCulloh's comment makes this a good first issue
to quickly see if we can solve this here.
Hi,
This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!
Hi,
This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!
Related to https://github.com/winglang/wing/issues/4965.
I think we need some sort of LocalService
or SimService
that only runs in the sim, and allows executing functions without being bundled.
Maybe https://github.com/unjs/jiti could be useful to run arbitrary code.
Hi,
This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!
Hi,
This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!
I tried this
npm i ngrok
I expected this:
A url to be printed
Instead, this happened
Is there a workaround?
Shell out to ngrok by calling
process.execSync
in the extern code insteadComponent
Compiler
Wing Version
0.11.2
Wing Console Version
No response
Node.js Version
18.14.1
Platform(s)
MacOS
Anything else?
If I try calling the extern code outside of the Wing simulator, it works fine
Based on the error message it looks like some kind of issue with vm2
Community Notes