Closed joscha closed 2 months ago
Is it possible that when resolving the types for some of these files, it mixes an older version of the same code? I can see that:
"@deno/dnt@0.41.2": {
"integrity": "27bd0b42ab92ec1e892cb1f95e4b3bce84151dad89dadb422ccf5b3d7d026e9c",
"dependencies": [
"jsr:@deno/cache-dir@^0.8.0",
"jsr:@std/fmt@^0.218.2",
"jsr:@std/fs@^0.218.2",
"jsr:@std/path@^0.218.2",
"npm:@ts-morph/bootstrap@0.22",
"npm:code-block-writer@^13.0.1"
]
},
and:
"@std/fs@0.218.2": {
"integrity": "dd9431453f7282e8c577cc22c9e6d036055a9a980b5549f887d6012969fabcca",
"dependencies": [
"jsr:@std/assert@^0.218.2",
"jsr:@std/path@^0.218.2"
]
},
which means that dnt
itself might possibly have loaded 0.218.2
of @std/assert
I think @std/assert
started using ESNext features. You might have to add the following to your build options (also, you might need to upgrade to dnt 0.41.3 (just released)):
compilerOptions: {
lib: ["ESNext"],
},
updating dnt to 0.41.3
fixes the issue (without adding lib: ESNext
).
I take it back, it only removes the errors with the filterDiagnostic
code above.
compilerOptions: { lib: ["ESNext"], },
This fixes it with @std/assert@1
and no needed filterDiagnostic
After updating
@std/assert
I get:in the ESM type check step. Excluding via:
doesn't seem to work. Reference PR is here: https://github.com/planet-a-ventures/affinity-node/pull/31