Skip to content

Angular library build error "Cannot read properties of null (reading 'render')" #4503

@JMRCGuedes

Description

@JMRCGuedes

Rollup Version

2.74.0 (latest)

Operating System (or Browser)

Windows 10

Node Version (if applicable)

16.15.0

Link To Reproduction

not applicable

Expected Behaviour

Passing the ng build

Actual Behaviour

Error:
Running ng build on angular library gives the following error
Cannot read properties of null (reading 'render')

image

Disclaimer:
Being this an enterprise project I can´t provide more information but I think that the problem is related to the changes made by using the optional chaining operator

image

Workaround:

By adding the following in the package.json devDependencies, it works fine:

"rollup": "2.72.1",
"@rollup/plugin-json": "4.1.0",
"@rollup/plugin-node-resolve": "13.3.0"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions