Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using with Deno Deploy #88

Open
adoublef opened this issue Sep 16, 2023 · 2 comments
Open

Using with Deno Deploy #88

adoublef opened this issue Sep 16, 2023 · 2 comments

Comments

@adoublef
Copy link

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

@AlexJeffcott
Copy link

I suspect that the deno-ts error would be resolved by #78 but for some reason the maintainer has not deployed it.

@cowboyd
Copy link

cowboyd commented Oct 17, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants