'What change to my gitlab-ci.yml is required to get past the errors (only default export is available...)

I'm not able to find many postings on this error on GitLab running my gitlab-ci.yml file.

These are the 2 dominant error loggings I see in the 3k lines of debug.

  1. Can't import the named export 'ZYX' from non EcmaScript module (only default export is available)
  2. error TS2694: Namespace '"/builds/.../node_modules/xxx"' has no exported member 'ɵɵFactoryDeclaration'

Here is my content

image: node:14.17.0

cache:
  paths:
    - ./node_modules/

stages:            # List of stages for jobs, and their order of execution
  - setup
  - build

Test:
  stage: setup
  script:
    # - mkdir -p dist
    - npm install  # or `npm install` or whatever you use to install deps
    - npm install -g @angular/[email protected]

Builder:
  stage: build
  script:          # ... your other build steps here
    - npm --version
    - mkdir dist
    # - ng build -c def-fouo
    - ./node_modules/@angular/cli/bin/ng build -c def-fouo


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source