Skip to content

Unable to run packagr #10

@warwickprice-kehe

Description

@warwickprice-kehe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions