Problems deploying Admin Pro Template to Prod


Topic: Problems deploying Admin Pro Template to Prod

d3adl0ck pro asked 6 years ago

I am using MDB Admin Template Pro (Angular version) 6.1.2. zip. When I ng build --prod and then deploy to firebase I get the following error: Uncaught TypeError: t is not a constructor at main.7c5a9e52e13271a227b4.js:1 at io (main.7c5a9e52e13271a227b4.js:1) at main.7c5a9e52e13271a227b4.js:1 at new e (main.7c5a9e52e13271a227b4.js:1) at Object.Do [as createNgModuleRef] (main.7c5a9e52e13271a227b4.js:1) at t.create (main.7c5a9e52e13271a227b4.js:1) at main.7c5a9e52e13271a227b4.js:1 at t.invoke (polyfills.12c949a2de9d1521794b.js:1) at Object.onInvoke (main.7c5a9e52e13271a227b4.js:1) at t.invoke (polyfills.12c949a2de9d1521794b.js:1) This occurs with the 6.1.1 version as well. I have even tried downloading a copy of the zip that I have not altered or changed. Building it for prod (after install) and deploying only to have the same problem. What should I do in this situation?  

Damian Gemza staff commented 6 years ago

Dear d3adl0ck, Could you please provide me reproduction steps of that case? Does compiler throw you errors when ng build --prod, or after that when you're pushing your code to firebase? Without more informations, I won't be able to help you well. Best Regards, Damian

d3adl0ck pro answered 6 years ago

I ran npm install again after a day and it works now. Thanks, -D

FREE CONSULTATION

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

Status

Closed

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No