Topic: Registry returned 404 for GET on https://registry.npmjs.org/ng-mdb-pro

deeep580 pro asked 5 years ago


I just updated angular from 5.2.0 to 6.0.0 and when I try to update my angular cli by using "ng update @angular/cli" I get this error "Registry returned 404 for GET on https://registry.npmjs.org/ng-mdb-pro"

deeep580 pro commented 5 years ago

I can not build my project in production mode without updating angular cli so I need to solve this problem

deeep580 pro commented 5 years ago

Never mind I solved that problem but there were many breaking changes in my application as I use rxjs and ngrx heavily and they updated rxjs to version 6 in angular 6 so I rolled back my application Here are some of the errors I got when building my application with angular 6, might help you in future updates. node_modules/ng-mdb-pro/free/dropdown/dropdown.directive.ts(158,9): error TS2339: Property 'filter' does not exist on type 'EventEmitter'. node_modules/ng-mdb-pro/pro/autocomplete/services/remote-data.service.ts(71,8): error TS2339: Property 'map' does not exist on type 'Observable'. node_modules/ng-mdb-pro/pro/autocomplete/directives/input.directive.ts(132,33): error TS2339: Property 'timer' does not exist on type 'typeof Observable'. node_modules/ng-mdb-pro/pro/autocomplete/directives/list-context.directive.ts(121,37): error TS2339: Property 'timer' does not exist on type 'typeof Observable'. node_modules/ng-mdb-pro/pro/autocomplete/directives/list-context.directive.ts(133,34): error TS2339: Property 'timer' does not exist on type 'typeof Observable'.

Damian Gemza staff commented 5 years ago

Dear deeep580, Please do npm install rxjs-compat@^6.0.0-rc.1 --save. This will fix your problems. With next release, rxjs-compat won't be necessary, but for now, it is. Best Regards, Damian

deeep580 pro commented 5 years ago

Thanks that Helped, had to make many changes but finally updated to Angular 6. can you suggest any guide that I can follow to update my code to rxjs 6 before I can delete rxjs-compact?

Damian Gemza staff commented 5 years ago

Dear deeep580, You don't need to delete rxjs-compat now. Please wait patiently, and with next release of MDB Angular (21.05.2018), it will be fixed, and our files will be ready to remove rxjs-compat from customer's projects. Best Regards, Damian

deeep580 pro commented 5 years ago

OK Thank you.

Alessandro de Manzano pro commented 5 years ago

Sorry to intrude but me too I'm this error message. I've Angular 6.0.1 with MDBPro 6.0.2 and it works fine (with rxjs 6 and -compat) I'm trying to update angular to 6.0.2 with "ng update" and I got this message. Should I wait for may 21th (next release of MDB) or is there another solution ? many thanks Ale

Damian Gemza staff commented 5 years ago

Dear Alessandro, could you try to remove "ng-mdb-pro" line from your package.json, do ng update and then install our library one more time? Please let me know if my suggestion works for you. Best Regards, Damian


Hi Damian, I tried and it indeed worked, I've updated both @angular/cli and @angular/core to latest 6.0.3/6.0.2. Do you think it would possibile to resolve this workaround in the future ? It's a bit annoying do this for every angular update   Many thanks Ale  

Damian Gemza staff commented 5 years ago

Dear Alessandro, I've never seen this case, and I don't know if it's problem with npm or with our library. Could you open an issue on npm, and ask for it? Best Regards, Damian

Alessandro de Manzano pro commented 5 years ago

Seems that is an angular cli issue: https://github.com/angular/angular-cli/issues/10775 and it is still open :(


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags