Skip to content

Unhandled exception adding Ionic to Angular 19 webapp #30447

Closed
@russellsaintcyr-mercuryfinancial

Description

We have an existing Angular 19.2.10 app, and wish to try out integrating Ionic. Your documentation says we should run the Angular CLI command ng add @ionic/angular but we get an unhandled exception "Class extends value undefined is not a constructor or null." Any insights would be appreciated.

russellsaintcyr@SNC02WC4VAHTD5 mercurycard % npx ng add @ionic/angular
✔ Determining Package Manager
  › Using package manager: npm
✔ Searching for compatible package version
  › Found compatible package version: @ionic/angular@8.5.8.
✔ Loading package information from registry
✖ Class extends value undefined is not a constructor or null
An unhandled exception occurred: Class extends value undefined is not a constructor or null
See "/private/var/folders/wm/c09cyllx3xzgtzqp0zh3zssr0000gn/T/ng-BX5qw0/angular-errors.log" for further details.

The angular-errors.log is as follows:

[error] TypeError: Class extends value undefined is not a constructor or null
    at Object.<anonymous> (/Users/russellsaintcyr/projects/lendingplatform/mercurycard/node_modules/@listr2/prompt-adapter-inquirer/dist/index.cjs:30:62)
    at Module._compile (node:internal/modules/cjs/loader:1562:14)
    at Object..js (node:internal/modules/cjs/loader:1699:10)
    at Module.load (node:internal/modules/cjs/loader:1313:32)
    at Function._load (node:internal/modules/cjs/loader:1123:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
    at Module.require (node:internal/modules/cjs/loader:1335:12)
    at require (node:internal/modules/helpers:136:16)
    at /Users/russellsaintcyr/projects/lendingplatform/mercurycard/node_modules/@angular/cli/src/commands/add/cli.js:265:108
    at async Task.task [as taskFn] (/Users/russellsaintcyr/projects/lendingplatform/mercurycard/node_modules/@angular/cli/src/commands/add/cli.js:265:60)
    at async Task.run (/Users/russellsaintcyr/projects/lendingplatform/mercurycard/node_modules/@angular/cli/node_modules/listr2/dist/index.cjs:2143:11)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions