You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating @asyncapi/parser-js to 3.0.14 I am getting the following error:
> @asyncapi/[email protected] pretest
> npm run build
> @asyncapi/[email protected] build
> rimraf lib && node scripts/fetch-asyncapi-example.js && tsc && oclif manifest &&echo"Build Completed"
Fetched ZIP file
Unzipped all examples from zip
src/base.ts:46:43 - error TS2345: Argument of type'AsyncAPIDocumentInterface' is not assignable to parameter of type'AsyncAPIDocument'.
Type 'import("upgrade-optimizer/node_modules/@asyncapi/parser/esm/models/asyncapi").AsyncAPIDocumentInterface' is not assignable to type'import("upgrade-optimizer/node_modules/parserapiv3/esm/models/asyncapi").AsyncAPIDocumentInterface'.
The types returned by 'info().contact()' are incompatible between these types.
Type 'import("upgrade-optimizer/node_modules/@asyncapi/parser/esm/models/contact").ContactInterface | undefined' is not assignable to type'import("upgrade-optimizer/node_modules/parserapiv3/esm/models/contact").ContactInterface | undefined'.
Type 'import("upgrade-optimizer/node_modules/@asyncapi/parser/esm/models/contact").ContactInterface' is not assignable to type'import("upgrade-optimizer/node_modules/parserapiv3/esm/models/contact").ContactInterface'.
Property '_json' is protected but type'BaseModel<J, M>' is not a class derived from 'BaseModel<J, M>'.
46 metadata = MetadataFromDocument(document, metadata);~~~~~~~~
Expected behavior
It should run without any errors.
Screenshots
...
How to Reproduce
update @asyncapi/parser-js in @asyncapi/cli to 3.0.14
Describe the bug.
After updating @asyncapi/parser-js to 3.0.14 I am getting the following error:
Expected behavior
It should run without any errors.
Screenshots
...
How to Reproduce
npm install
npm run test
🥦 Browser
None
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue ?
No, someone else can work on it
The text was updated successfully, but these errors were encountered: