SkrillxS
Deno11mo ago
11 replies
Skrillx

deno_blog is broken

Hi! Not sure if deno_blog is still maintained since it's last commit was 3 months ago, but there's an error I'm encountering.

I used this command to create my blog:
 sh
$ deno run -r --allow-read --allow-write https://deno.land/x/blog/init.ts ./directory/for/blog/

and then ran deno task serve to start the local development server. However, it throws an error:
 sh
Task dev deno run --allow-net --allow-read --allow-env=NODE_DEBUG --watch --no-check index.js --dev
Watcher Process started.
error: Import assertions are deprecated. Use `with` keyword, instead of 'assert' keyword.

import emojis from "./all.json" assert { type: "json" };

  at https://deno.land/x/emoji@0.3.0/emoji.ts:2:1

Watcher Process failed. Restarting on file change...


I am using the latest version of Deno. Can anyone help me with this? Thanks!
Was this page helpful?