-
Notifications
You must be signed in to change notification settings - Fork 389
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
fix: Cannot instantiate a design token just using an example in documentation #3211
Comments
@ABIOLI-COM I don't encounter that error when I copy and paste the provided code. Can you share a repository or provide sample code that I can copy and paste to replicate the issue? |
I can repro it locally. But @ABIOLI-COM and I had a discussion this weekend. He concluded the library is not for him (yet). Still want to try to solve this though |
:-) ...but I still keep an eye here... I like most of the functionalities... ;-) |
I think the issue is caused by the source generator that creates the Design Token classes. Need to investigate a bit more (when I can find the time). This is one of the lesser used functionalities so it has a bit lower priority for me. |
I was able to fix the generator code so the reported error does not occur anymore. Unfortunately, there is still something wrong with the
gives you: Fixed code will be in next release. |
I'm just using the code copied from the Design Tokens page, trying to use one of them directly as a component in the page, like in:
The page already contains other fluent ui components, so everything should be set up correctly, but adding this code I receive this error:
I cannot understand if there is something to be initialized, or what...
Thank you in advance.
AB
The text was updated successfully, but these errors were encountered: