grandpaJ
grandpaJ3d 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
bartlomieju3d ago
Looks like x/emoji hasn't been updated to use with Deno 2
bartlomieju
bartlomieju3d 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
grandpaJOP2d ago
I'm just trying to use the saaskit out of the box, i don't want emojis