Topic: URGENT: ng build --prod fails

itay pro asked 5 years ago


ng build works

ng build --prod fails with many warnings like:

WARNING in ./node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard.ngfactory.js 108:3967-3988 "export 'StickyHeaderModule' (imported as 'i1') was not found in 'ng-uikit-pro-standard'

WARNING in ./node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard.ngfactory.js 108:3990-4011 "export 'StickyHeaderModule' (imported as 'i1') was not found in 'ng-uikit-pro-standard'

WARNING in ./node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard.ngfactory.js 108:608-624 "export 'NavbarService' (imported as 'i1') was not found in 'ng-uikit-pro-standard'

WARNING in ./node_modules/ng-uikit-pro-standard/ng-uikit-pro-standard.ngfactory.js 108:626-642 "export 'NavbarService' (imported as 'i1') was not found in 'ng-uikit-pro-standard'

Please advise quickly !


Damian Gemza staff answered 5 years ago


I don't know because your problem with ng build is so general. You definitely should try to remove the node_modules before creating a ticket :)

Best Regards,

Damian


itay pro answered 5 years ago


Removing node_modules helped I wonder why most of the times I update, there is some stopping error with the build


Damian Gemza staff answered 5 years ago


Dear @mdb2

I need to get more information about how to reproduce this problem because those errors are so general.

Please try to remove node_modules directory and package-lock.json file, then install the latest (7.5.3) version and let me know if your problem is gone.

Best Regards,

Damian



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: 7.5.1
  • Device: NA
  • Browser: NA
  • OS: NA
  • Provided sample code: No
  • Provided link: No