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

ng add @ng-toolkit/universal not working

bodhwaa opened this issue · comments

I'm submitting a...


[x] Bug report  
[ ] Feature request
[ ] Documentation issue or request

In package

[ ] @ng-toolkit/init
[ ] @ng-toolkit/serverless
[x] @ng-toolkit/universal
[ ] @ng-toolkit/pwa
[ ] @ng-toolkit/firebug

package-lock.txt
package.txt

Current behavior

When I am trying to run ng add @ng-toolkit/universal it not working and giving error
i Using package manager: npm
√ Found compatible package version: @ng-toolkit/universal@1.1.21.
√ Package information loaded.
√ Package successfully installed.
ERROR: newTree.optimize is not a function
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.

Expected behavior

Successfully finish the execution of running the command.

Minimal reproduction of the problem with instructions

create any new project using ng new project-name
cd project-name
ng add @ng-toolkit/universal

Environment

Angular CLI: 11.2.14
Node: 14.16.1
OS: win32 x64

Angular: 11.2.14
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package Version

@angular-devkit/architect 0.1102.14
@angular-devkit/build-angular 0.1102.14
@angular-devkit/core 11.2.14
@angular-devkit/schematics 11.2.14
@schematics/angular 11.2.14
@schematics/update 0.1102.14
rxjs 6.6.7
typescript 4.1.6