-
Notifications
You must be signed in to change notification settings - Fork 12
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
Typescript support #41
Comments
Hey @ecosky, I've created a fork of the project at react-shaders written in Typescript. However, it seems like the bug you ran into later in your post is actually #42 which is related to React strict mode. I plan to fix this as well (if possible) in Our workaround for this issue with |
Please stop using that little useless crap thing call it Typescript! |
I attempted to incorporate this module into a typescript project, but hit some barriers that prevented me from completing the task. I was able to get it to build successfully with the addition of a small file "shadertoy-react.d.ts" with the following contents:
however when attempting to run the code I would get runtime errors that so far I have been unable to resolve, primarily because the page would include shadertoy-react.min.js despite my best efforts to include unminified code. I am pretty new to react and typescript, so it might be a simple problem however I have been completely stumped by this. Here's a partial callstack for the error I get:
I've spent a lot of time trying to get Visual Studio to use the unminified version but I'm stuck.
It would be really helpful if this module supported two features:
Thanks!
shadertoy-react.d.zip
The text was updated successfully, but these errors were encountered: