-
Notifications
You must be signed in to change notification settings - Fork 25
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
CommonJS generated components are not usable #77
Comments
Actually this might just be me being dumb - I tried to What version of this library do I need to be using? |
The UI Components team just published them as |
Beautiful, that works! |
are you using the dev tarballs? package names should be |
This seems to be a React issue when transpiling to ES5. As a work around for now you can use ES6. Could you try manually updating the generated component to remove the |
Removing |
what is the JSON that goes with this problem - JSON would be great because then I can run it in my test program. |
The json is in the description |
@dpilch - it does not work with even the latest ES versions. Same issue. |
You will likely need to change the module type (or omit) on the render config as well.
The typescript transpiler we are using underneath seems to ignore other settings if CommonJS is set. We can add errors for that in the future. |
Asana tracking link: https://app.asana.com/0/1200599634514309/1200993480703740/f |
I have a component with the following definition:
I run this through codegen with the following config:
The resulting code looks like this:
When imported into my react app, I get the following error:
The text was updated successfully, but these errors were encountered: