Typescript check not passing after Deno 1.13.2
See original GitHub issueEnvironment
OS: Linux 5.10.70-1-MANJARO Deno version: deno 1.14.0 V8 version: v8 9.4.146.15 TS version: typescript 4.4.2
Issue
Importing denodb causes TS check to not pass after deno 1.13.2.
code
import { DataTypes, Database, Model, PostgresConnector } from 'https://deno.land/x/denodb/mod.ts';
outputs
error: TS2578 [ERROR]: Unused '@ts-expect-error' directive.
// @ts-expect-error
~~~~~~~~~~~~~~~~~~~
at https://deno.land/std@0.106.0/node/events.ts:100:7
TS2578 [ERROR]: Unused '@ts-expect-error' directive.
// @ts-expect-error
~~~~~~~~~~~~~~~~~~~
at https://deno.land/std@0.106.0/node/events.ts:105:9
TS2578 [ERROR]: Unused '@ts-expect-error' directive.
// @ts-expect-error
~~~~~~~~~~~~~~~~~~~
at https://deno.land/std@0.106.0/node/events.ts:116:7
TS2578 [ERROR]: Unused '@ts-expect-error' directive.
// @ts-expect-error
~~~~~~~~~~~~~~~~~~~
at https://deno.land/std@0.106.0/node/events.ts:200:7
TS2578 [ERROR]: Unused '@ts-expect-error' directive.
// @ts-expect-error
~~~~~~~~~~~~~~~~~~~
at https://deno.land/std@0.106.0/node/events.ts:225:5
TS2578 [ERROR]: Unused '@ts-expect-error' directive.
// @ts-expect-error
~~~~~~~~~~~~~~~~~~~
at https://deno.land/std@0.106.0/node/events.ts:391:9
TS2578 [ERROR]: Unused '@ts-expect-error' directive.
// @ts-expect-error
~~~~~~~~~~~~~~~~~~~
at https://deno.land/std@0.106.0/node/events.ts:424:7
TS2578 [ERROR]: Unused '@ts-expect-error' directive.
// @ts-expect-error
~~~~~~~~~~~~~~~~~~~
at https://deno.land/std@0.106.0/node/events.ts:446:11
TS2578 [ERROR]: Unused '@ts-expect-error' directive.
// @ts-expect-error
~~~~~~~~~~~~~~~~~~~
at https://deno.land/std@0.106.0/node/events.ts:451:11
TS2578 [ERROR]: Unused '@ts-expect-error' directive.
// @ts-expect-error
~~~~~~~~~~~~~~~~~~~
at https://deno.land/std@0.106.0/node/events.ts:646:5
TS2578 [ERROR]: Unused '@ts-expect-error' directive.
// @ts-expect-error
~~~~~~~~~~~~~~~~~~~
at https://deno.land/std@0.106.0/node/events.ts:667:5
Found 11 errors.
I suppose this is caused by one of the dependencies that depends on the std library, maybe bumping the offending dependency would resolve this issue?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Deno 1.13 Release Notes
Type check code examples in Markdown files; Spawn subprocess with clean environment; Permissions APIs accept URLs; FFI replaces native plugin ...
Read more >Error converting the result for "op_respond" #12646 - GitHub
I just had this today for the first time and sometimes reproduce it, sometimes not. In general, the typescript phase before running the...
Read more >Simple Deno test fails with superoak - Stack Overflow
Context: deno 1.13.2 (release, aarch64-apple-darwin) => on mac m1. ... the test fails, even before having the error after the failures list.
Read more >Foreign Function Interface | Manual - Deno
As of Deno 1.13 and later, the FFI (foreign function interface) API allows users to call ... It is no longer safe to...
Read more >Using TypeScript | Manual - Deno
Deno supports both JavaScript and TypeScript as first class languages at runtime. ... To make the most of skipping type checks, --no-check transpiles...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This pull #307 solves the compatibility issues with the latest deno (v.1.16.2).
The problem was with the dex library as @lejacobroy pointed out above, postgres lib, mysql, mongodb and sqlite dependencies.
I haven’t tested the PR on serious projects.
you could use an import map like this: