-
Notifications
You must be signed in to change notification settings - Fork 101
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
ui-concerto production build failing without storybook #144
Comments
Please refer to this project for the required scaffolding: https://github.com/accordproject/web-components-starter |
@DianaLease could you provide more context on this? My understanding is a bit limited, but I think we have some issues we are working on within the main |
There is a known issue with using web-components with an app created with |
Thanks, I'll try that |
@irmerk maybe we can close this as "duplicate" ? |
Sorry for not closing earlier |
Bug Report 🐛
When trying to deploy a production build of ui-concerto (adapted to work without storybook) only a blank page shows and some errors are thrown.
Expected Behavior
I expected the ConcertoForm element to render correctly showing a similar interface to the one in the netlifiy demo.
Current Behavior
The errors thrown are following:
A minified React Error #130 is thrown twice as well as a Type Error:
When not building for production but developing the following Warning is thrown with everything on default:
When I use a Modelfile which includes a DateTime Object another Warning (
Failed prop type: The prop 'value' is marked as required in 'DateTimeInput', but its value is 'undefined'. in DateTimeInput (created by ue)
) is thrown additionally.If the rendered Object is an asset extending AccordContract another Warning (
Each child in a list should have a unique "key" prop.
) is thrown, as the correspondingpe
Element which contains the Parties in the Form doesn't have a key property.Possible Solution
Steps to Reproduce
npx create-react-app test
to create a react appsrc/App.js
src/index.js
replaceimport App from './App'
withimport Demo from './App'
and<App />
with<Demo />
to the dependencies in package.json
5. Run with
npm start
and observe Dev Warnings6. Run
npm build
and serve i.e. via nginx and docker:docker run --name some-nginx -p 80:80 -v /path/to/CRA-App/test/build/:/usr/share/nginx/html:ro -d nginx
Context (Environment)
Desktop
The text was updated successfully, but these errors were encountered: