-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error TS2304: Cannot find name 'Canvas2DContextAttributes'. #120
Comments
Hi, @jkaldon . Can I ask which version of TypeScript you are using, and can you share your |
Never mind, I can see them. XD It's early. |
So, it seems If you add |
Okay, seems it was renamed here: microsoft/TypeScript@ee25cde#diff-46fd87925e4552c166ec188712741c3fR5899 I'll try to update when I have some time. 🙂 |
Cool, thanks! In case it matters, here's my project: |
Hey, @jkaldon . Thought I should probably give you an update: I have fixed the issue, but I can't publish it as there's something wrong with the documentation generation at the moment. I'm looking into this, but I'm a bit stumped - seeking help from the community. For now a better solution than skipping the lib check might be to add a global alias for the renamed type. You should be able to put the following in a global type declaration:
I haven't tried this myself, but in theory it should work nicely. If you're not sure how to do this I'd be happy to fork your repo and open a PR for you. 🙂 |
Thanks for the update, @JakeSidSmith . For now, I'm content with your skip lib check option until the real fix is possible. I'm not really in any rush. |
Just published 0.7.0 which should fix this issue. 😊 |
You'll want to Will be sorting those asap. |
Jake,
I was working on a personal project, Polychromasia, when I ran into the error below. I'm not sure how to address this problem cleanly. Do you have any suggestions?
Thanks,
The text was updated successfully, but these errors were encountered: