Skip to content

An unhandled exception occurred: NOT SUPPORTED: keyword "id", use "$id" for schema ID after running ng add @ngtoolkit/universal #902

@ntandoFromCosint

Description

@ntandoFromCosint

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

Current behavior

I ran ng add @ng-toolkit/universal and got following response

ℹ Using package manager: npm
✔ Found compatible package version: @ng-toolkit/[email protected].
✔ Package information loaded.

The package @ng-toolkit/[email protected] will be installed and executed.
Would you like to proceed? Yes
✔ Package successfully installed.
An unhandled exception occurred: NOT SUPPORTED: keyword "id", use "$id" for schema ID
See "C:\Users\XXXXXXXXX\AppData\Local\Temp\ng-jiHkDu\angular-errors.log" for further details.

Expected behavior

No error after package successfully installs

Minimal reproduction of the problem with instructions

Create a simple angular project and run ng add @ng-toolkit/universal

Example repository

Private repository

What is the motivation / use case for changing the behavior?

I need to make my angular app SEO friendly

Environment



Angular CLI: 13.1.4
Node: 16.13.2
Package Manager: npm 8.3.2
OS: win32 x64

Angular: 13.1.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1301.4
@angular-devkit/build-angular   13.1.4
@angular-devkit/core            13.1.4
@angular-devkit/schematics      13.1.4
@angular/cli                    13.1.4
@schematics/angular             13.1.4
rxjs                            7.4.0
typescript                      4.5.5

- Windows 10 Home Single Language 

Others:

IDE-VSCode
Package Manager: npm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions