maciejtreder / ng-toolkit

:star: Angular tool-box! Start your PWA in two steps! Add Serverless support for existing projects and much more

Home Page:https://www.angular-universal-pwa.maciejtreder.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Error when installed in Angular 6.0.8

SHUBHAMDAVE001 opened this issue · comments

I'm submitting a...


[ ] Bug report  
[ ] Feature request
[ Need Some documentation for impementing this in lower version with particular version of package] Documentation issue or request

In package


@angular-devkit/architect         0.13.10
@angular-devkit/build-angular     0.13.10
@angular-devkit/build-optimizer   0.13.10
@angular-devkit/build-webpack     0.13.10
@angular-devkit/core              0.6.8
@angular-devkit/schematics        0.6.8
@angular/cli                      6.0.8
@angular/pwa                      0.6.8
@ngtools/webpack                  7.3.10
@schematics/angular               8.3.29
@schematics/update                0.6.8
rxjs                              6.6.2
typescript                        2.9.2
webpack                           4.29.0

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: 6.0.8


- Node version: 12.16.1 
- Platform:  win32 x64

Others:

Have tried to implement SSR using this command.

npm install --save @angular/platform-server @nguniversal/module-map-ngfactory-loader ts-loader @nguniversal/express-engine

Getting dist folder with browser and server folder but locally it is not working.
Got an Error for Webpack-cli which I was not able to solve.

after that got your solution from Gary Youtube Channel.

Have tried running -- ng add @ng-toolkit/universal

but getting this error

![image](https://user-images.githubusercontent.com/16791576/109116535-bca17700-7766-11eb-9e76-afa2a06dc2a9.png)

Is there any way to run my project in which I have implemented PWA.
Now needed SSR for social medial crawling.

Thank you in Advance.