denque icon indicating copy to clipboard operation
denque copied to clipboard

Proper Deno Import?

Open tmikaeld opened this issue 2 years ago • 2 comments

Any chance we can get a proper module for Deno?

error: TS2596 [ERROR]: 'Denque' can only be imported by turning on the 'esModuleInterop' flag and using a default import.
import { Denque } from "https://deno.land/x/[email protected]/index.js";
         ~~~~~~
    at file:///home/t/renderer/server.ts:3:10

TS2497 [ERROR]: This module can only be referenced with ECMAScript imports/exports by turning on the 'allowSyntheticDefaultImports' flag and referencing its default export.
import { Denque } from "https://deno.land/x/[email protected]/index.js";
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    at file:///home/t/renderer/server.ts:3:24

Found 2 errors.

tmikaeld avatar Feb 13 '22 13:02 tmikaeld

I'm not super familiar with Deno but I would accept PRs for this

Salakar avatar Feb 14 '22 10:02 Salakar

I've just started using it myself, but I can see if I can figure it out, thanks!

tmikaeld avatar Feb 14 '22 11:02 tmikaeld