Skip to content
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

[BUG] Official demo doesn't work for react #31

Open
dolanmiu opened this issue Apr 27, 2023 · 2 comments
Open

[BUG] Official demo doesn't work for react #31

dolanmiu opened this issue Apr 27, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@dolanmiu
Copy link

Describe the bug
Go to the demo: https://lukasbach.github.io/monaco-editor-auto-typings/

types cannot be found for react

To Reproduce
Go to https://lukasbach.github.io/monaco-editor-auto-typings/

@dolanmiu dolanmiu added the bug Something isn't working label Apr 27, 2023
@guatedude2
Copy link

The issue is with React 18. I had to use React 17:

autoTypings.setVersions({
  '@types/react': '17.0.2',
});

@dolanmiu
Copy link
Author

dolanmiu commented Jun 28, 2023

Worked like a charm! But would still like to see this documented, and the official demo to be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants