Topic: Getting an error on serve after updating node_modules to latest available version

Yevhen Parkhomenko free asked 2 years ago

After updating node_modules and on serve getting error

Tried changing version of sass manually, didn't help, its something connected to sass specifically(screenshot provided below)


Arkadiusz Idzikowski staff answered 2 years ago

@Yevhen Parkhomenko You probably installed the latest version of MDB Angular (12.0.0) but still use Angular 11 in your projects. The 12.0.0 version of our library requires Angular 12.

Yevhen Parkhomenko free commented 2 years ago

Here's our versions of Angular and MDB. The error, that displayed on screenshot above, happens after simple "yarn install" followed up by "ng serve". Currently using previous version of node_modules to evade error. Also tried updating only sass, including manually by changing numbers in package.json file to evage error, didnt help.

"@agm/core": "^3.0.0-beta.0",
"@angular/animations": "~9.1.4",
"@angular/cdk": "^9.2.1",
"@angular/common": "~9.1.4",
"@angular/compiler": "~9.1.4",
"@angular/core": "~9.1.4",
"@angular/forms": "~9.1.4",
"@angular/platform-browser": "~9.1.4",
"@angular/platform-browser-dynamic": "~9.1.4",
"@angular/platform-server": "~9.1.4",
"@angular/router": "~9.1.4",

* Material Design for Bootstrap 4
 * Version: MDB PRO 4.8.2

Current version of sass and sass-loader:

sass: "1.26.3"
sass-loader: "8.0.2"

Arkadiusz Idzikowski staff commented 2 years ago

@Yevhen Parkhomenko You need to update your Angular version to 12 or downgrade MDB Angular (ng-uikit-pro-standard) version to the one that supports your current Angular version (9.4.0 in this case).

You can install specific version of MDB Angular by adding #version at the end of the installation command: npm install git+ --save

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: MDB5 1.0.0
  • Device: PC
  • Browser: Chrome
  • OS: Ubuntu
  • Provided sample code: No
  • Provided link: No