How do I resolve this angular 18 build error?

Discussão em 'Angular' iniciado por Jim B, Setembro 10, 2024.

  1. Jim B

    Jim B Guest

    I reinstalled my pc node, angular, using latest versions and my angular project will run locally but it will not build. This is a new issue it did not happen several months ago.

    what: doing ng build gives me unpatched reference error on angular compile. Node 20.17.0 Angular 18.2.3

    I tried earlier builds of the code from July that worked at that time. The same error occurs with them. I will try installing Angular 16 next and see if that works.

    Again, the code runs locally without errors.

    'X [ERROR] Angular compilation emit failed. [plugin angular-compiler]

    TypeError: Cannot read properties of undefined (reading 'Symbol(patchedReferencedAliases)') at loadIsReferencedAliasDeclarationPatch (file:///C:/Users/james/aProject/A30Insurance/node_modules/@angular/compiler-cli/bundles/chunk-WYWH4ABE.js:1507:49) '

    Any suggestions will be appreciated.

    Thank you.

    Continue reading...

Compartilhe esta Página