Open januwA opened 4 years ago
Same error for me.
Getting the same error does anyone know to slove this...
The package doesn't support Angular 9 hence the error.
Please read #788.
Any update on this..? can anyone help.?
@januwA @vijayhardaha @ajay-arya if you are still facing issue have a look here on this reply if it helps you out.
Hi, I have the same issue, i solved it with this version ng add @ng-toolkit/universal@8.0.3
Hey Guys,
If you are using angular 9 then, Kindly run npm i @schematics/angular@9.1.0 npm i @angular-devkit/schematics@9.1.0
then ng add @ng-toolkit/universal
somebody fix this error ?
does anybody fix this error?
I have recently updated my project to Angular 10. Now I wanted to add @ng-toolkit/universal to the project Which is giving me this error
Installing packages for tooling via npm.
Installed packages for tooling via npm.
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.
My package json looks like
"dependencies": {
"@angular/animations": "~10.0.4",
"@angular/cdk": "^9.2.0",
"@angular/common": "~10.0.4",
"@angular/compiler": "~10.0.4",
"@angular/core": "~10.0.4",
"@angular/forms": "~10.0.4",
"@angular/platform-browser": "~10.0.4",
"@angular/platform-browser-dynamic": "~10.0.4",
"@angular/router": "~10.0.4",
"rxjs": "~6.5.4",
"tslib": "^2.0.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.1000.3",
"@angular-devkit/schematics": "^10.0.3",
"@angular/cli": "~10.0.3",
"@angular/compiler-cli": "~10.0.4",
"@angular/language-service": "~10.0.4",
"@types/jasmine": "~3.5.0",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.12.36",
"protractor": "~7.0.0",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~3.9.6"
}
}
Does anybody fix this issue?
Team, any update on this issue?
i have angular 11.2.4 in my system and i got following issue
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.
Does any one solve this issue?
Same problem here: angular 11.2.13 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.
I had this problem in Angular 10.0.0 (Fresh App installation, nothing added but ng new
default packages)
$ ng add @ng-toolkit/universal
Installing packages for tooling via npm.
Installed packages for tooling via npm.
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.
Well, I thought it's a problem with my version being old, so I upgraded the Angular CLI to latest version, and create new Angular app in latest version 12.2.0, and here's the error I got:
$ ng add @ng-toolkit/universal
ℹ Using package manager: npm
✔ Found compatible package version: @ng-toolkit/universal@1.1.21.
✔ Package information loaded.
The package @ng-toolkit/universal@1.1.21 will be installed and executed.
Would you like to proceed? Yes
✔ Package successfully installed.
"ng-toolkit universal" schema is using the keyword "id" which its support is deprecated. Use "$id" for schema ID.
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.
Any suggestions to fix it?
🐞 bug report
Error while installing
@ ng-toolkit/universal
package