Error on ng update


Topic: Error on ng update

Kelvin Muia pro asked 6 years ago

Hi,

After doing an upgrade for my CLI, run into the following error,

ERROR in ./node_modules/ng-uikit-pro-standard/assets/scss/mdb.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--14-3!./node_modules/ng-uikit-pro-standard/assets/scss/mdb.scss) Module build failed (from ./node_modules/sass-loader/lib/loader.js):

@import "core/bootstrap/functions"; ^ File to import not found or unreadable: core/bootstrap/functions. in /workspace/MTL/Projects/dev/angular/upload/node_modules/ng-uikit-pro-standard/assets/scss/mdb.scss (line 31, column 1) ℹ 「wdm」: Failed to compile.

Kindly assist on way forward.


Dimitri LAVAURY-COLLOT pro premium priority commented 6 years ago

I solved it through a workaround:

I downloaded the project from gthub https://git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard and copy "core" folder (ng-uikit-pro-standard-master\assets\scss\core) in node_modules folder of my project (\node_modules\ng-uikit-pro-standard\assets\scss).

Actually I'm using npm 6.8.0


Damian Gemza staff answered 6 years ago

With the npm@6.8.0 there exists a problem, that the npm ignores every directory which is called 'core'. This problem will be resolved with the @6.9.0 version of npm.

But we'll add a workaround for this situation with the 7.4.2 release of MDB Angular.

Best Regards,

Damian


Damian Gemza staff answered 6 years ago

This problem is caused by the latest npm version.

Please try to downgrade to the something below 6.8.0, and the problem will be gone.

We have to investigate this case.

Best Regards,

Damian


NCIIT answered 6 years ago

Hi there, same problem. When installing through npm there is no directory 'core' in ng-uikit-pro-standard/assets/scss/, but looking in git there is such directory


Arkadiusz Idzikowski staff commented 6 years ago

Please try to use other version of npm. There are some problems in 6.8.0.


NKartchner answered 6 years ago

I had this same problem and used the exact work around as listed in a comment above by Dimitri LAVAURY-COLLOT. It seems the "core" folder is not getting installed when running npm install. Copying the core folder from the gitlab download and pasting it into my current projects node_module/ng-uikit-pro-standard folder fixed my problem. Running npm v 6.8.0


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
  • User: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.0.0
  • Device: Laptop
  • Browser: Chrome
  • OS: Ubuntu
  • Provided sample code: No
  • Provided link: No
Tags