Unable to use it on a Cloudflare Worker - eval() statements disallowed #195
-
|
The initialization works on a webpage environment using: However this doesn't work on a Cloudflare worker (either by giving an Url or serving the wasm file itself), I get the following error :
Possibly because the initialization uses eval() statements which are unfortunately disallowed in workers environment. So I have no way of initializing the object before using it. The package is amazing though for my webpage. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 19 replies
-
|
What do you mean by "or serving the wasm file itself"? Are you talking about the bytes of the wasm files? I checked the
Can you get more information about what exactly is being blocked? |
Beta Was this translation helpful? Give feedback.
-
|
Have you tried adding a resource what is suggested in their documentation here: https://blog.cloudflare.com/webassembly-on-cloudflare-workers/#how-to-use-webassembly-with-cloudflare-workers? And then try |
Beta Was this translation helpful? Give feedback.
What do you mean by "or serving the wasm file itself"? Are you talking about the bytes of the wasm files?
I checked the
magick.jsfile of the native library and this is not doing any of the following with a string:Can you get more information about what exactly is being blocked?