liweijian
CDCloudflare Developers
•Created by liweijian on 6/30/2023 in #general-help
How to make `wrangler dev` run in background?
I wanna to create a wasm demo for internal usage:
https://developers.cloudflare.com/workers/platform/webassembly/javascript/
I can run by
wrangler dev
in terminal, but need to keep the terminal. Is there any way to make it run in ubuntu's background?2 replies
CDCloudflare Developers
•Created by liweijian on 6/30/2023 in #general-help
got `errno: -32` when `wrangler dev`
I'm using
$ wrangler init
to init a project, change the code of worker.ts
, and run with wrangler dev
,
OS: Ubuntu 20.04
Node.js v18.16.0
Got error:
2 replies
CDCloudflare Developers
•Created by liweijian on 5/24/2023 in #workers-help
How to import javascript function from Wasm?
I'm trying to import a javascript function from Wasm.
For the
worker.ts
, I defined a function consoleLog
:
And I'm using AssemblyScript for the Wasm side:
Since I commented the //consoleLog(100);
out, it works well after compile:
However, when I un-commented it as:
I got an error after asc
:
Just wondering what's the appropriate way to import javascript function from Wasm?2 replies