maciejtreder / ng-toolkit

:star: Angular tool-box! Start your PWA in two steps! Add Serverless support for existing projects and much more
https://www.angular-universal-pwa.maciejtreder.com
MIT License
1.12k stars 156 forks source link

Getting an Error in adding @NG-TOOLKIT #741

Open danishkhanani94 opened 4 years ago

danishkhanani94 commented 4 years ago

Setting up Angular 6 SEO using ng toolkit. I Run : ng add @ng-toolkit/universal But it Show me this (Errors)

Installing packages for tooling via npm.
npm WARN @nicky-lenaers/ngx-scroll-to@1.1.1 requires a peer of rxjs@^6.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN angular-particle@1.0.4 requires a peer of @angular/core@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN angular-particle@1.0.4 requires a peer of rxjs@^5.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN angularx-social-login@1.2.0 requires a peer of rxjs@^6.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.3.1 requires a peer of popper.js@^1.14.7 but none is installed. You must install peer dependencies yourself.
npm WARN ngx-typed-js@1.1.0 requires a peer of @angular/common@~7.2.15 but none is installed. You must install peer dependencies yourself.
npm WARN ngx-typed-js@1.1.0 requires a peer of @angular/core@~7.2.15 but none is installed. You must install peer dependencies yourself.
npm WARN @ng-toolkit/universal@8.0.3 requires a peer of @angular/common@^8.2.6 but none is installed. You must install peer dependencies yourself.
npm WARN @ng-toolkit/universal@8.0.3 requires a peer of @angular/core@^8.2.6 but none is installed. You must install peer dependencies yourself.
npm WARN @nguniversal/express-engine@8.2.6 requires a peer of @angular/common@^8.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN @nguniversal/express-engine@8.2.6 requires a peer of @angular/core@^8.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN @nguniversal/express-engine@8.2.6 requires a peer of @angular/platform-server@^8.2.0 but none is installed. You must install peer dependencies yourself.

+ @ng-toolkit/universal@8.0.3
added 33 packages from 52 contributors and audited 59554 packages in 48.383s
found 784 vulnerabilities (37 low, 9 moderate, 738 high)
  run `npm audit fix` to fix them, or `npm audit` for details
Installed packages for tooling via npm.
[bugsnag] Loaded!
ERROR: Cannot find module '@schematics/angular/utility/dependencies'
ERROR: If you think that this error shouldn't occur, please fill up bug report here: https://github.com/maciejtreder/ng-toolkit/issues/new
INFO: stacktrace has been sent to tracking system.
Nothing to be done.
KingDarBoja commented 4 years ago

@danishkhanani94 Can you share your package.json? It should work on fresh Angular 8 projects, maybe the current angular version being used doesn't match the one on the package.

danishkhanani94 commented 4 years ago

I am using Angular 6, Maybe thats why it is not working right?

KingDarBoja commented 4 years ago

I am using Angular 6, Maybe thats why it is not working right?

Probably it is the reason, can you try with a fresh Angular 8 project?