Topic: Angular universal document is not defined

Gaurav Garg pro asked 6 years ago


Hi Team, I am trying to setup angular universal support and i am getting some errors: document is not defined How to resolve this problem in angular universal? Angular universal doesn't support document, localstorage.  

Damian Gemza staff commented 6 years ago

Dear Gaurav Garg, This problems are caused by hammerJS library. You have to add it to whitelist in webpack.config.js file. Please look at instructions which we've prepared: https://mdbootstrap.com/angular/angular-universal/ . There's everything that you need to run MDB Angular with SSR. Best Regards, Damian

Gaurav Garg pro answered 6 years ago


Thanks Damian. I have send the mail at contact@mdbootstrap.com. Please provide access.

Damian Gemza staff commented 6 years ago

Today you'll get your access. Best Regards, Damian

Gaurav Garg pro answered 6 years ago


Hi Damian, Please tell me how to get the token for ng-md-pro.
"ng-mdb-pro": "git+https://<your-token>@git.mdbootstrap.com/mdb/angular/ng-pro.git",

Damian Gemza staff commented 6 years ago

Dear Gaurav, You have to send an email to my friends at contact@mdbootstrap.com . In this mail please provide your order number, and please send email from this address which you've used to get our product. 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

Answered

Specification of the issue

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