Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: ng build -prod error when compiling scss

lgervaispacbell-net priority asked 7 years ago


when compiling ng app with -prod, i get the following error, assets/scss/bootstrap/bootstrap.scssNode#moveTo was deprecated. Use Container#append any known compatibility issues or fixes for this, thanks here is my setup Angular CLI: 1.6.5 Node: 7.8.0 OS: darwin x64 Angular: 5.1.3 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, router @angular/cli: 1.6.5 @angular-devkit/build-optimizer: 0.0.41 @angular-devkit/core: 0.0.28 @angular-devkit/schematics: 0.0.51 @ngtools/json-schema: 1.1.0 @ngtools/webpack: 1.9.5 @schematics/angular: 0.1.16 typescript: 2.5.3 webpack: 3.10.0

lgervaispacbell-net priority answered 7 years ago


Hi Damian. Do you have a combination of cli angular ts version combination that does compile for production you can offer? Can you provide a package json we can try. The cssnano issue above has been opened for more than six month, I doubt this can be resolved soon, surely there is a workaround. thanks

Damian Gemza staff commented 7 years ago

Hi Igervais, Tell me, you need to fix this warning? It's only a simple warning, that some option is deprecated. Building project works well even with this warning, so i don't know, that's necessary to solve it right now. Best Regards, Damian

Damian Gemza staff answered 7 years ago


Hello guys, This warning isn't caused by our product. Warning is caused by cssnano in version 3.x. There's no stable version of css nano 4.x. We have to wait for next stable version which will be included in angular cli files. You can read more about this warning on github: https://github.com/ben-eb/cssnano/issues/379 Official site of cssnano: http://cssnano.co/ For now, we can't do anything with this. Best Regards, damian

lgervaispacbell-net priority commented 7 years ago

Hi Damian. Do you have a combination of cli angular ts version combination that does compile for production you can offer? Can you provide a package json we can try. The cssnano issue above has been opened for more than six month, I doubt this can be resolved soon, surely there is a workaround. thanks

Vitor Pavanelli free answered 7 years ago


I also get the same error. Waiting to hear from the team.

Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags