Topic: Getting an error on serve after updating node_modules to latest available version
Yevhen Parkhomenko asked 3 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 3 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 commented 3 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 3 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+https://oauth2:YOUR_TOKEN@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git#9.4.0 --save
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: 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