Comments (12)
The UI Components team just published them as @aws-amplify/ui-react@next
. That should have everything you need. If not, talk to @hvergara
from amplify-codegen-ui.
Actually this might just be me being dumb - I tried to npm install @aws-amplify/ui-react
, but it does not seem to export a lot of what's needed for the code to work - specifically View
and getOverrideProps
What version of this library do I need to be using?
from amplify-codegen-ui.
Beautiful, that works!
from amplify-codegen-ui.
Actually never mind, it doesn't work. I am seeing this error:
from amplify-codegen-ui.
are you using the dev tarballs? package names should be @aws-amplify/ui-react-next
and @aws-amplify/ui-next
instead
from amplify-codegen-ui.
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 default
after react_1
and see if that works?
from amplify-codegen-ui.
Removing .default
fixed it! I'll leave this open to track the fix on your end, but for now I'll use ES6 as you suggested.
from amplify-codegen-ui.
what is the JSON that goes with this problem - JSON would be great because then I can run it in my test program.
from amplify-codegen-ui.
The json is in the description
from amplify-codegen-ui.
@dpilch - it does not work with even the latest ES versions. Same issue.
from amplify-codegen-ui.
You will likely need to change the module type (or omit) on the render config as well.
new AmplifyRenderer(component, {
module: ModuleKind.ESNext,
target: ScriptTarget.ES2017,
script: ScriptKind.JS,
})
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.
from amplify-codegen-ui.
Asana tracking link: https://app.asana.com/0/1200599634514309/1200993480703740/f
from amplify-codegen-ui.
Related Issues (20)
- Component with custom child does not match golden file
- Undefined type of component properties HOT 1
- [Feature Request] Expose `buildThemeObject` when using `ReactThemeStudioTemplateRenderer` HOT 3
- Generated studio components are broken by default HOT 1
- Schema validation should happen earlier in the execution HOT 1
- `renderThemeJson` outputting the wrong code. HOT 2
- Implement logger HOT 3
- Add a note to the generated files that asks customers not to edit
- Nested components shouldn't receive {...props} and should accurately create overrideProps string
- Top level bindingProperties should be optional
- Top level props need to be available to render function
- `renderComponentOnly` method broken
- Do not create .tsx folders
- Text value props should always be rendered as content
- Fix security issues found by Dependabot
- Component should not useDataStoreBinding hook when no predicates present HOT 1
- Collections rendering invalid `items` variable HOT 5
- `Not pulling components because this project is not configured with the "react" framework` prints before and after push HOT 2
- `convertToLocal` incorrectly parses dates between midnight and 1am HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amplify-codegen-ui.