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

deno run -A -r https://esm.sh init not working #505

Closed
canac opened this issue Jan 23, 2023 · 0 comments
Closed

deno run -A -r https://esm.sh init not working #505

canac opened this issue Jan 23, 2023 · 0 comments

Comments

@canac
Copy link

canac commented Jan 23, 2023

The deno run command on the homepage fails because the site serves HTML instead of the deno_cli.ts script.

$ deno run -A -r https://esm.sh init
error: The module's source code could not be parsed: Expected ';', '}' or <eof> at https://esm.sh/:1:11

  <!DOCTYPE html>
            ~~~~

I don't know Go, but it looks like this branch https://github.com/ije/esm.sh/blob/e783d1271122259a23f6decba6449085d5ec214f/server/handler.go#L63 is taken before this branch https://github.com/ije/esm.sh/blob/e783d1271122259a23f6decba6449085d5ec214f/server/handler.go#L185 has a chance to serve the Deno code.

@ije ije closed this as completed in 0ceed80 Jan 24, 2023
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

1 participant