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

assert in import fails #12

Closed
adambrangenberg opened this issue Aug 2, 2023 · 3 comments
Closed

assert in import fails #12

adambrangenberg opened this issue Aug 2, 2023 · 3 comments

Comments

@adambrangenberg
Copy link

Hey, that module is a dependency in blog, which I'm trying to run at the moment.

I get error: Expected ;, got assert at https://deno.land/x/[email protected]/emoji.ts:2:32 as the error message.

Deno version output:

deno 1.9.0 (release, x86_64-unknown-linux-gnu)
v8 9.1.269.5
typescript 4.2.2
@adambrangenberg
Copy link
Author

Hmm, the example for importing JSON (https://examples.deno.land/importing-json) also doesn't work

@eliassjogreen
Copy link
Member

It seems you are using a really old and outdated version of deno without import assertion support. Import assertions landed in 1.17, denoland/deno#12866. I would recommend updating, both as a security measure and as a best practice.

@adambrangenberg
Copy link
Author

Okay, thank you

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

2 participants