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')

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

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"