Topic: Error with NPM pro install - new project

andrewv pro asked 7 years ago


Following the quickstart, getting this error: ERROR in node_modules/ng-mdb-pro/index.ts(2,9): error TS2305: _modules/ng-mdb-pro/free/index"' has no exported member 'MDBSpinningPreloader'. node_modules/ng-mdb-pro/free/index"' has no exported member 'MDBBootstrapModulePro'. node_modules/ng-mdb-pro/free/index"' has no exported member 'MDBBootstrapModulePro'. app.module.ts: import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { MDBBootstrapModules } from 'ng-mdb-pro'; import { MDBSpinningPreloader } from 'ng-mdb-pro'; import { NO_ERRORS_SCHEMA } from '@angular/core'; @NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, MDBBootstrapModules.forRoot(), ], providers: [], bootstrap: [ AppComponent ], schemas: [ NO_ERRORS_SCHEMA ] }) export class AppModule { }

andrewv pro commented 7 years ago

Found out the issue - for some reason the dependencies aren't being pulled in correctly due to what looks like a mismatch in some of the angular tools' versioning. Once those were all fixed, problem solved. hurrah.

Dawid Adach pro commented 7 years ago

Thanks andrewv, could you please provide more details on what have you changed?

Serge Shakhmatov pro answered 7 years ago


Changing import { MDBBootstrapModulePro } from './pro/'; in ng-mdb-pro/mdb.modules.ts to import { MDBBootstrapModulePro } from './pro/index'; resolves the error.

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