Cannot do production build with 4.3.1


Topic: Cannot do production build with 4.3.1

Andrew pro asked 7 years ago

This (closed) problem was noted here: Failed to load resource when upgrading project from 4.2.0 to 4.3.0.  Unfortunately, the workaround suggested only works for me on development builds. I still get an error related to the completer-list-item when doing an AOT production build.

 


Łukasz Salamon pro answered 7 years ago

I've got the same problem.
ERROR in ENOENT: no such file or directory, open '/Users/luki/Downloads/mdb-angular-pro-4.3.1/src/app/angular-bootstrap-md/pro/autocomplete/components/completer-list-item.component.html'
   
Hi, sorry we don't support AOT at the moment. It was causing some troubles and so we decided to remove it. We will think about adding it in the future.

Andrew pro commented 7 years ago

What? AOT is an integral part of any Angular production build. How can you even consider promoting/selling a product without AOT?

Łukasz Salamon pro commented 7 years ago

Agree with Andrew. And according to Adrian's responses in https://mdbootstrap.com/support/mdb-angular-pro-4-3-1-does-not-build-in-the-prod-mode/ you are looking to fix it asap.

riccy pro commented 7 years ago

with AOT my app loaded in ca. 1 second. now just because of mdb-angular I had to remove AOT. The app now takes about 4-6 seconds to load. "thinking about adding AOT in the future" shouldn't be considered an option. please fix this asap.

It is now being fixed and will be available in the next release.

riccy pro commented 7 years ago

thats great news, thank you.

Dawid Adach pro answered 7 years ago

Dear , we have just released bugfix which was breaking production build. Please download the newest package. Kind regards, Dawid
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: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: Yes