newTree.optimize is not a function @ng-toolkit/universal
rahilikram67 opened this issue · comments
Rahil Ikram commented
I'm submitting a...
[ ] Bug report
[ ] Feature request
[ ] Documentation issue or request
In package
[ ] @ng-toolkit/init
[ ] @ng-toolkit/serverless
[ ] @ng-toolkit/universal
[ ] @ng-toolkit/pwa
[ ] @ng-toolkit/firebug
Current behavior
Expected behavior
Minimal reproduction of the problem with instructions
Example repository
What is the motivation / use case for changing the behavior?
Environment
Angular version: X.Y.Z
- Node version: XX
- Platform:
Others:
Rahil Ikram commented
Angular Universal is the best solution.
Review all your angular code, use
..........................................
if (isPlatformBrowser(this.platformId){
// boot time browser api usage like document,window,localStorage etc. in constructors,onInit, route guards
}