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: 1 comment 5 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.
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.js
file 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?