-
Notifications
You must be signed in to change notification settings - Fork 188
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
About the type definition issue on StyleDeclarationMap #388
Comments
I just figured it out myself, all you need to do is change compile target in tsconfig.json from "es5" to "es6", since typescript may not support Map object when targeting "es5". For reference :microsoft/TypeScript#6842 |
I'm having same problem, already changed my target to ES6 in tsconfig.json but the auto complete stills dont work
|
TypeScript Version: 3.7.5
Aphrodite Version: 2.4.0
When I using StyleSheet create function
I found out that VS Code is not able to give me any autocomplete suggestion on those CSS properties, since they think StyleDeclarationMap is a type of 'any'
but it is not
I have changed typescript version and modified my tsconfig file, but nothing make it work.
I wonder how can I fixed this issue?
The text was updated successfully, but these errors were encountered: