halfByteMedic
halfByteMedic
DDeno
Created by Arthur Mougin on 1/24/2025 in #help
threejs, typescript and vite => everything threejs is any
7 replies
DDeno
Created by Arthur Mougin on 1/24/2025 in #help
threejs, typescript and vite => everything threejs is any
Here's a hack I found that should also work for any other non-typed package.
7 replies
DDeno
Created by Arthur Mougin on 1/24/2025 in #help
threejs, typescript and vite => everything threejs is any
7 replies
DDeno
Created by Arthur Mougin on 1/24/2025 in #help
threejs, typescript and vite => everything threejs is any
This is the same problem you might have seen that everyone has with react. Deno does not know to apply a @types package to a non-typedpackage.
7 replies
DDeno
Created by Steve A on 1/17/2025 in #help
React types without @deno-types before every import?
I wonder if this will help? The GH issue only seems to mention the deno check operation.
14 replies
DDeno
Created by Steve A on 1/17/2025 in #help
React types without @deno-types before every import?
14 replies
DDeno
Created by Steve A on 1/17/2025 in #help
React types without @deno-types before every import?
This was a few weeks ago on whatever the stable release of Deno was at that time in VSCode.
14 replies
DDeno
Created by Steve A on 1/17/2025 in #help
React types without @deno-types before every import?
Here's a link to the repo where it did work for me. https://github.com/Duenke/Deno-with-React-Pokedex-App/blob/main/deno.json
14 replies
DDeno
Created by Steve A on 1/17/2025 in #help
React types without @deno-types before every import?
declare module "react" {
// @ts-types="@types/react"
import React from "npm:react@18";
export = React;
}
declare module "react" {
// @ts-types="@types/react"
import React from "npm:react@18";
export = React;
}
14 replies
DDeno
Created by Steve A on 1/17/2025 in #help
React types without @deno-types before every import?
I'd be thrilled to find a better answer here as for what's going on. Seems to me like Deno LSP can't tell that @types/react is "for react" if that makes sense. I found a hack somewhere online that will at least get you going on your way. Add a file called react.d.ts somewhere in your source and the contents will re-export react with the types on top of it.
14 replies
DDeno
Created by Werdox on 10/16/2024 in #help
deno and @types/react
I'm now running into this problem myself a few months later. I've never heard of esm.sh till now. I didn't want to move from npm to esm.sh, I wanted to move to jsr, but..hmm..
2 replies