vasturiano / react-kapsule

React wrapper for kapsule-style web components
MIT License
8 stars 2 forks source link

Building problem #7

Open kevino83 opened 4 years ago

kevino83 commented 4 years ago

Hello, using Yarn workspaces, building my project where react-force-graph is a subproject dependency, I'm encountering a build error: _

Creating an optimized production build... Failed to compile.

/Users/aboschini/WebstormProjects/monorepo/node_modules/react-kapsule/dist/react-kapsule.module.js Attempted import error: 'fromentries' does not contain a default export (imported as 'fromEntries').

_

Manually solved by fixing the import. thanks

vasturiano commented 4 years ago

@kevino83 thanks for reaching out.

I believe that sub-dependency (fromentries) has only a commonJs entrypoint, not an ES6 modules one. Are you able to import commonJs modules in your application?