D
Deno

help

deno check: Module '"internal:///missing_dependency.d.ts"' has no exported member...

PHPatrick (he/him)7/12/2023
The sequence of events: - Upgraded to Deno 1.35.0 - ran deno check on my code - got an error like the one described in https://github.com/denoland/deno/issues/11196 (AssertionError: data unexpectedly null) - tried the suggestion from that issue, namely replaced path with types in my triple slash reference comments - reran deno check - got the above error, the exported member being something that is declared in a file referenced by one of the above triple slash comments Can provide more details and create a GitHub issue but wanted to post here in case folks are already on it.
GitHub
AssertionError where "data" is unexpectedly null when a file contai...
A.d.ts declare class Test { } test.ts /// <reference path="./A.d.ts" /> Output > deno run test.ts Check file:///V:/dprint-plugins/test.ts error: AssertionError: "data" ...
PHPatrick (he/him)8/17/2023
actually, looks like I get this type error now for everything imported from a module declared in an import map also happens with Deno 1.34.3 and 1.34.2 and 1.34.1 and 1.34.0 and 1.33.4 and 1.32.4 I'll try to make a minimum reproducing example. ok I think I figured it out: the error happens when the compiler can't resolve the path referenced by the triple slash lmk if a MRE is desired oh ya, and I figured this out by switching to v1.31.1 which reports the error correctly bumping this because I'm running in to it again. Would be nice if this error message was more human-friendly.
Bbartlomieju8/20/2023
@zzt64 could you please open an issue in the repo? A better error message with a suggestion how to fix it is definitely needed here
PHPatrick (he/him)8/22/2023
GitHub
Confusing error message: '"deno:///missing_dependency.d.ts"' has no...
I'm working on creating a minimum reproducing example, but I do know this happens: On every version of Deno that I've tried, from 1.26.0 to 1.36.1 When triple slash directives are involved ...
Bbartlomieju8/23/2023
Thanks!

Looking for more? Join the community!

Recommended Posts
cargo compile size 160MWhen using `cargo install deno` the result is 160M, if there's info on shrinking this somewhere pleaDeno type enforcementHey, I have a question about the type checking. ```ts function logging(message : number) { consoDNS Records and Denoso I am confused I'm building an application that uses Steam's web API and am looking at why the resFresh pattern helpCould anyone possibly help guide me to understand the 'freshest' pattern for the following, please? Deno seems to assume wrong return type (Puppeteer)With the following code, I get an type error which I do not expect: ```ts const element: ElementHanCreating my first Deno moduleHave never published to NPM or Denoland before, so I'm having some problems figuring shit out. I'm gSanitize multiple test stepsIs it possible to sanitize multiple steps inside of one test. I want to test my DB with somthing likFFI string corrupted?Is there anything i'm doing wrong here? I'm confused on why it's crashing on setVerisonUE5 in particTypescript Conditional Type ReturnsI don't know why but this conditional type return is just causing me grief. ```ts type InnerType<T>Parsing Hostname for TLD, domain name, and SLDdoes anyone know of any packages to parse a URL's hostname for the top level domain, domain name, anMigrating large Node project to DenoIs there any reliable way to migrate a Node project to Deno? Currently working on a large project thWhy does Deno.serve not return a promise anymore?Doesn't this cause problems for error handling?Changing GitHub username – what about deno.land/x?If I change my GitHub username and I have a couple of modules on deno.land/x, what will happen to thAbsolute Imports with OakI would like to have absolute imports in my Oak-API ... 😉Passing initial data to WorkerDetault `Worker` doesnt seem to support `WorkerData` as params. Although using `node:worker_threads`Adding npm specifiers to deno.jsonHow do i add a specific version of an npm module to the cache?How do I enqueue_microtask from other threadso `Isolate.enqueue_microtask` is obviously not send/sync so I think the only option is to use` std:how to import svg in vite without type errors?Can't connect to http server on official alpine deno with std serve.I'm using the official alpine docker container to run deno, listening on port 8080, but a simple curcalling a javascript function and waiting for the promise with `rusty_v8````rust let result = function.call(scope, recv, &[]).expect("couldnt run"); /*i got this result whic