esbuild_deno_loader icon indicating copy to clipboard operation
esbuild_deno_loader copied to clipboard

Using with Deno Deploy

Open adoublef opened this issue 1 year ago • 2 comments

I wanted to learn how to setup esbuild within Deno Deploy. I have tried the example as stated in the README but I keep getting the following errors

ReferenceError: Worker is not defined
    at startRunningService (https://deno.land/x/[email protected]/wasm.js:1777:5)
    at ensureServiceIsRunning (https://deno.land/x/[email protected]/wasm.js:1758:31)
    at Module.build (https://deno.land/x/[email protected]/wasm.js:1734:26)
    at file:///src/main.ts:8:30

I have tried using the v0.19.2 version of the wasm esbuild (which looks to give me a deno-ts error saying the versions are not compatible) as well as v0.17.19 not working.

Would like to know what I ought to do to resolve link to repo here link to deployed app here

adoublef avatar Sep 16 '23 17:09 adoublef

I suspect that the deno-ts error would be resolved by https://github.com/lucacasonato/esbuild_deno_loader/pull/78 but for some reason the maintainer has not deployed it.

AlexJeffcott avatar Sep 19 '23 06:09 AlexJeffcott

I'm also seeing this error when trying to use esbuild on Deno Deploy.

ReferenceError: Worker is not defined
    at startRunningService (https://deno.land/x/[email protected]/wasm.js:1777:5)
    at ensureServiceIsRunning (https://deno.land/x/[email protected]/wasm.js:1758:31)
    at Module.build (https://deno.land/x/[email protected]/wasm.js:1734:26)
    at buildMain (file:///src/build.ts:6:32)
    at handler (file:///src/main.ts:12:29)
    at ext:deno_http/00_serve.js:442:28
    at ext:deno_http/00_serve.js:647:29
    at eventLoopTick (ext:core/01_core.js:183:11)

cowboyd avatar Oct 17 '23 15:10 cowboyd