typescript-json-schema icon indicating copy to clipboard operation
typescript-json-schema copied to clipboard

v0.52.0 regression: UnhandledPromiseRejectionWarning: Error: type not found

Open jamesmontalvo3 opened this issue 4 years ago • 1 comments

When using the latest version 0.52.0 I get the following error:

(node:24128) UnhandledPromiseRejectionWarning: Error: type IProcedureDefinition not found

By switching back to 0.51.0 I do not get this. Generating a schema is done via scripts in package.json like this:

{
    "gen-schema-proc": "typescript-json-schema ./tsconfig.json IProcedureDefinition -o ./app/schema/procedureSchema.json",
}

The error occurs on 0.52.0 for all three of my schema files being generated, and no issues occur on 0.51.0.

Also there is no tag in this repo for 0.52.0, but npmjs.com lists 0.52.0 as latest.

Node version is 14.17.2

jamesmontalvo3 avatar Dec 16 '21 00:12 jamesmontalvo3

I added the missing tag. Please look at what change caused the regression.

domoritz avatar Dec 20 '21 22:12 domoritz