Skip to content

Error running nest generate locally #6

Description

@crperezt

Hi all -- I'm trying to run the app schematic locally, but running into this error:

An error occured:
Error: NOT SUPPORTED: keyword "id", use "$id" for schema ID
    at Object.code (/mnt/c/Users/crper/repos/nest-test/node_modules/@angular-devkit/core/node_modules/ajv/dist/vocabularies/core/id.js:6:15)
    at keywordCode (/mnt/c/Users/crper/repos/nest-test/node_modules/@angular-devkit/core/node_modules/ajv/dist/compile/validate/index.js:464:13)
    at /mnt/c/Users/crper/repos/nest-test/node_modules/@angular-devkit/core/node_modules/ajv/dist/compile/validate/index.js:222:17    at CodeGen.code (/mnt/c/Users/crper/repos/nest-test/node_modules/@angular-devkit/core/node_modules/ajv/dist/compile/codegen/index.js:439:13)
    at CodeGen.block (/mnt/c/Users/crper/repos/nest-test/node_modules/@angular-devkit/core/node_modules/ajv/dist/compile/codegen/index.js:568:18)
    at iterateKeywords (/mnt/c/Users/crper/repos/nest-test/node_modules/@angular-devkit/core/node_modules/ajv/dist/compile/validate/index.js:219:9)
    at groupKeywords (/mnt/c/Users/crper/repos/nest-test/node_modules/@angular-devkit/core/node_modules/ajv/dist/compile/validate/index.js:208:13)
    at /mnt/c/Users/crper/repos/nest-test/node_modules/@angular-devkit/core/node_modules/ajv/dist/compile/validate/index.js:192:13    at CodeGen.code (/mnt/c/Users/crper/repos/nest-test/node_modules/@angular-devkit/core/node_modules/ajv/dist/compile/codegen/index.js:439:13)
    at CodeGen.block (/mnt/c/Users/crper/repos/nest-test/node_modules/@angular-devkit/core/node_modules/ajv/dist/compile/codegen/index.js:568:18)

Failed to execute command: node ./src/my_schematics:app --no-dry-run --collection="./src/my_schematics" --no-skip-import --language="ts" --source-root="src" --spec --no-flat --spec-file-suffix="spec"

I just clone the repo to the ./src/my_schematics folder on a new nest project, and ran npm install then npm run build in that folder, then ran nest g -c ./src/my_schematics app from the root of my project, but I get the above error. Any clue what could be going on?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions