New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deno complains about the Dom #6
Comments
I added But I get type definition conflicts between TS's dom and Deno's (ie. those for Deno's global, web, fetch APIs) :( My guess is to find a way to let the TS compiler know I only want it to use those of the DOM ? |
From the Deno docs at targeting deno and the browser
So the way to go seems to be to let TS know that we don't wan to use "deno.window" Because by default Deno's compiler behaves as if a
|
I'll try using a
|
It was solved with the solution on the previous comment. On commit 5acbd2e |
Wait! GitHub closed this automatically from my commit's message! That's cool! :D |
The compiler will throw errors because there are no HTML elements (obviously) but that is fine. We are not gonna run three.js on Deno itself, but we will use Deno to bundle it, so it has to compile.
I’ll need to research how. I’ve read about using
/// <reference lib=“dom” />
but it doesn’t seem to work as expected. Maybe I messed something up 🤔The text was updated successfully, but these errors were encountered: