Steve A
Steve A
DDeno
Created by Bhaumin on 1/9/2025 in #help
Start Data Science Channel
I think this is a great idea. I'm really struggling to get some basic things working, which is discouraging me from integrating deno on my scientist-heavy team
4 replies
DDeno
Created by Steve A on 1/17/2025 in #help
React types without @deno-types before every import?
Thanks so much for setting me straight on this 🙏
14 replies
DDeno
Created by Steve A on 1/17/2025 in #help
React types without @deno-types before every import?
Ha, wow, so my issue in my repo was that I fixed this error. I used export default. So the error I was fixing was actually breaking deno's react types. I wonder if this should be a bug report. But maybe not, because the type inference here is inherently broken. I'm not sure what to do with that. Clearly the last version of deno aims to fix issues like this, so maybe it's on their radar already. I'll see if any existing issues exist and maybe contribute more information if I can
14 replies
DDeno
Created by Steve A on 1/17/2025 in #help
React types without @deno-types before every import?
It works! So, I'm putting together that diff now to see what went wrong. And I've got this error in react.d.ts: at L9: export = React;
Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. This will start erroring in a future version of Deno 2 in order to align with TypeScript.deno-ts(1203)
Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. This will start erroring in a future version of Deno 2 in order to align with TypeScript.deno-ts(1203)
14 replies
DDeno
Created by Steve A on 1/17/2025 in #help
React types without @deno-types before every import?
I’ll try your repo now. Thanks for that! I’ll report back with a diff of the settings if it works
14 replies
DDeno
Created by Steve A on 1/17/2025 in #help
React types without @deno-types before every import?
Thanks for this. I just gave it a try, and no luck. My IDE shows I'm running 2.1.6, types are set up correctly, but React imports are still broken
14 replies
DDeno
Created by Steve A on 1/17/2025 in #help
React types without @deno-types before every import?
Here's an example of the type of error it leads to: Module '"react"' has no exported member 'useState'. Did you mean to use 'import useState from "react"' instead?deno-ts(2614)
14 replies
DDeno
Created by Steve A on 1/17/2025 in #help
React types without @deno-types before every import?
Hey, thank you for the suggestion! Unfortunately I gave that a shot, and when it failed I posted this question. Does it work for you? If so, I’d love to compare configurations and runtime info
14 replies