D
Deno

help

Import is "Not yet initialized?"

SSwifter5/26/2023
No idea what this means. First screenshot is error, second screenshot is problematic line, third screenshot is the thing being imported. I don't know why it's saying it "hasn't been initialized", never run into this problem before and not sure what it's even supposed to mean.
ABTAndreu Botella (they/them)5/26/2023
do you have an import cycle? where an imported module imports (modules that import...) the current module?
SSwifter5/26/2023
oh crap yeah animation.ts imports general.ts which imports environment.ts which imports internals/environment.ts which imports animation.ts fuck
ABTAndreu Botella (they/them)5/26/2023
yeah, so import cycles make it so imported variables (when you're evaluating a module) are somehow "available" but they can't be used until the module they're from is evaluated and the order of module evaluation depends on the order of imports in every module not sure if that gives you any way to solve things other than refactor stuff to not have a cycle
SSwifter5/26/2023
might just have to refactor, but we'll see thanks!
ABTAndreu Botella (they/them)5/26/2023
sure

Looking for more? Join the community!

Recommended Posts
How are deno processes/isolates managed in Deploy?Hi, I'm writing a multiplayer game in Deno and currently all of the game state is kept in module-scoCannot access web server from other network devices when compiledHello. Im kinda new to deno and i just compiled my first bigger project with deno, but when the taskHow to use chrome devtools / inspector with Deno?Hello all! I'd like to profile my game server written in Deno to identify the hot spots. I see thaClear local KV storeHow do I delete/clear the local database?Deno.Command not working for applicationHello. Im trying to start an application using Deno.Command, but it for some reason doesnt work. TheUint8Array or Float32ArrayIs there any significant difference between using a Float32Array and using a Uint8Array from the samSending proper Content-Type depending on file sentHello. Im new to Deno and TypeScript and i wanted to convert one of my older projects (NodeJs and JaReclaim an already registered module?Is it possible to reclaim an already registered third party module? For example if the module that iDeno.readDir on current script even if used like an http package.Hello !! I would like to do Deno.readDir and readFiles on files relative to the script that execute Top level awaits for `import()`How come to top-level awaits for `import()` not work? I found an issue on GitHub https://github.com/How to auto import on save?This doesn't work: { "deno.enable": true, "deno.lint": true, "deno.unstable": true, "editorRemove sink from streamIs it at all possible to "undo" adding a sink on a stream? I am trying to make it so that once the wHTTPS w/ client certificate – works in Node.js, not in DenoI am making an HTTPS call with a client certificate. It works great in Node.js, but when I try to doUsing encrypted private keys with DenoSo it seems to me that Deno doesn't provide any helpers for making HTTPS requests with encrypted priError when using readline.question()I get this error with the following code ```ts import process from 'node:process' import readline fjsx in denoHi, I have simple code that takes use of jsx. Based on deno docs, the jsx support should be ootb. IsExpress pt2 tutorial links to itselfAt the very start of the tutorial, it mentions that part 1 got up and running, but the link points tonboard is infiniteSeems like the onboarding process is broken and won't stop repeating itself You need to be a new memDeno mobile app?Anyone has made a mobile app using deno? I was planning to use Fresh and https://capacitorjs.com/ tWhat is the best way to count values with Deno.Kv?I want to show the total values in the database. It seems that the only way is with `kv.list()` and