larixsource / angular-react-dates

Angular wrapper component for Airbnb react-dates.
MIT License
25 stars 15 forks source link

Unable to run packagr #10

Open warwickprice-kehe opened 6 years ago

warwickprice-kehe commented 6 years ago

Hi there.... I have a project that have common components that I use in various applications. I created a new module for angular-react-dates. Within the project of common components every thing works perfectly. But when I try and run packagr on my project this new module is giving me errors:

`Building Angular library Generating bundle for @kehe-dev/connect-common-web-components Cleaning bundle build directory Processing assets Running ngc Compiling to FESM15 'render' is not exported by 'node_modules\react-dom\index.js' 'createElement' is not exported by 'node_modules\react\react.js'

BUILD ERROR Cannot call a namespace ('moment') Error: Cannot call a namespace ('moment') at error (C:\Sources\GitHub\connect-common-web-components\node_modules\rollup\dist\rollup.js:185:14) at Module.error (C:\Sources\GitHub\connect-common-web-components\node_modules\rollup\dist\rollup.js:16526:3) at Node.bindNode (C:\Sources\GitHub\connect-common-web-components\node_modules\rollup\dist\rollup.js:11918:17) at Node.bind (C:\Sources\GitHub\connect-common-web-components\node_modules\rollup\dist\rollup.js:11005:8) at eachChild.child (C:\Sources\GitHub\connect-common-web-components\node_modules\rollup\dist\rollup.js:11024:34) at keys.forEach.key (C:\Sources\GitHub\connect-common-web-components\node_modules\rollup\dist\rollup.js:11041:5) at Array.forEach () at Node.eachChild (C:\Sources\GitHub\connect-common-web-components\node_modules\rollup\dist\rollup.js:11034:13) at Node.bindChildren (C:\Sources\GitHub\connect-common-web-components\node_modules\rollup\dist\rollup.js:11024:8) at Node.bind (C:\Sources\GitHub\connect-common-web-components\node_modules\rollup\dist\rollup.js:11004:8)`

Has anyone seen this before, and anyone have a solution?

Thanks,

Warwick