web-components: Unable to start a production build of concerto-ui in a CRA
Replicated in https://github.com/shift-a-bit/concerto-ui-react-demo
Bug Report 🐛
Unable to start a production build of concerto-ui in a CRA. The development build works fine. Reported by @shift-a-bit in AP Slack workspace.
Originally, I thought that this might be related to the new rollup pipeline, but replacing concerto-ui
with concerto-ui-react@0.84.0
or concerto-ui-react@0.83.0
gives the same result.
Steps to Reproduce
git clone https://github.com/shift-a-bit/concerto-ui-react-demo
cd concerto-ui-react-demo
npm i
npm run build
serve -s build
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 23 (20 by maintainers)
A brute-force confirmation that the issue is with the overriding of
instanceof
in the new concerto classes. Those lines in e.g., the model manager: https://github.com/accordproject/concerto/blob/f91da652e15485cd92db8576a4e0e60572a8542e/packages/concerto-core/lib/modelmanager.js#L709Without those you can properly start the app: