Mo1
Mo1

Reputation: 379

Issue with CUSTOM_ELEMENTS_SCHEMA

I'm trying to run npm start for an Angular project but I'm getting this error and my attempt to Google-search the issue/solution wasn't successful. I'm using Angular CLI: 14.2.4

npm start output enter image description here

Upvotes: -1

Views: 451

Answers (2)

Njehuu
Njehuu

Reputation: 69

The issue appears in the production build only after upgrading to ionic 7, ; eg ionic build --prod; or ionic build --configuration="production"

For ionic serve and ng serve , ionic build / ng build works fine;

compiling with for production with --prod; or --configuration="production" compresses app size and i am also stuck at this.

Upvotes: 0

Mohamed Karkotly
Mohamed Karkotly

Reputation: 1517

The npm start contains [email protected] start. According to the releases page of ngx-admin, it looks like you are 4 major versions behind, and the support for Angular v14.x came with ngx-admin v8.

Update ngx-admin or simply go to the installation guidelines and follow the instructions.

Update 👉

Since the project was started 3 years ago, you have to downgrade your Angular version to Angular v9, which I think was the one compatible with [email protected].

Upvotes: 2

Related Questions