grandpaJ
grandpaJ4w ago

initial '$deno task start' failed because of emoji import

Console error logs
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...
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 just followed the instructions from the readme and got this error. Is this a known error?
3 Replies
bartlomieju
bartlomieju4w ago
Looks like x/emoji hasn't been updated to use with Deno 2
bartlomieju
bartlomieju4w ago
Have you tried using jsr:@denosaurs/emoji? https://jsr.io/@denosaurs/emoji
JSR
@denosaurs/emoji - JSR
@denosaurs/emoji on JSR: 🦄 Emojis for dinosaurs
grandpaJ
grandpaJOP4w ago
I'm just trying to use the saaskit out of the box, i don't want emojis