Azure / autorest.typescript

Extension for AutoRest (https://github.com/Azure/autorest) that generates TypeScript code. The transpiled javascript code is isomorphic. It can be run in browser and in node.js environment.
MIT License
179 stars 75 forks source link

Failed to Build Generated Code: "Cannot find name 'deserializeToolDefinitionUnion'" #2815

Open wanlwanl opened 2 months ago

wanlwanl commented 2 months ago

Build result

tspconfig

spec commit id: 6c7f423

Related error message:

04:09:15.277 cmdout     [automation_generate.sh] [ERROR]: Command closed with code '1'.
04:09:15.278 cmdout     [automation_generate.sh] [ERROR]: Exit code: 1
04:09:15.278 cmdout     [automation_generate.sh] [ERROR]: Summary:
04:09:15.278 cmdout     [automation_generate.sh] [ERROR]:   Returned error code: 1
04:09:15.278 cmdout     [automation_generate.sh] [ERROR]:   src/api/operations.ts(155,7): error TS2304: Cannot find name 'deserializeToolDefinitionUnion'.
04:09:15.278 cmdout     [automation_generate.sh] [ERROR]:   src/api/operations.ts(229,43): error TS2304: Cannot find name 'deserializeToolDefinitionUnion'.
04:09:15.278 cmdout     [automation_generate.sh] [ERROR]:   src/api/operations.ts(294,7): error TS2304: Cannot find name 'deserializeToolDefinitionUnion'.
04:09:15.278 cmdout     [automation_generate.sh] [ERROR]:   src/api/operations.ts(381,7): error TS2304: Cannot find name 'deserializeToolDefinitionUnion'.
04:09:15.278 cmdout     [automation_generate.sh] [ERROR]:   src/api/operations.ts(1042,7): error TS2304: Cannot find name 'deserializeToolDefinitionUnion'.
04:09:15.279 cmdout     [automation_generate.sh] [ERROR]:   src/api/operations.ts(1146,43): error TS2304: Cannot find name 'deserializeToolDefinitionUnion'.
04:09:15.279 cmdout     [automation_generate.sh] [ERROR]:   src/api/operations.ts(1234,7): error TS2304: Cannot find name 'deserializeToolDefinitionUnion'.
04:09:15.279 cmdout     [automation_generate.sh] [ERROR]:   src/api/operations.ts(1335,7): error TS2304: Cannot find name 'deserializeToolDefinitionUnion'.
04:09:15.279 cmdout     [automation_generate.sh] [ERROR]:   src/api/operations.ts(1444,7): error TS2304: Cannot find name 'deserializeToolDefinitionUnion'.
04:09:15.279 cmdout     [automation_generate.sh] [ERROR]:   src/api/operations.ts(1549,7): error TS2304: Cannot find name 'deserializeToolDefinitionUnion'.
04:09:15.279 cmdout     [automation_generate.sh] [ERROR]:   src/api/operations.ts(1676,7): error TS2304: Cannot find name 'deserializeToolDefinitionUnion'.
04:09:15.279 cmdout     [automation_generate.sh] [ERROR]:   src/api/operations.ts(2508,11): error TS2345: Argument of type 'VectorStoreChunkingStrategyRequestUnion | undefined' is not assignable to parameter of type 'VectorStoreChunkingStrategyRequestUnion'.
04:09:15.279 cmdout     [automation_generate.sh] [ERROR]:   src/api/operations.ts(2679,11): error TS2345: Argument of type 'VectorStoreChunkingStrategyRequestUnion | undefined' is not assignable to parameter of type 'VectorStoreChunkingStrategyRequestUnion'.
04:09:15.279 cmdout     [automation_generate.sh] [ERROR]:   src/models/models.ts(848,19): error TS2531: Object is possibly 'null'.
04:09:15.280 cmdout     [automation_generate.sh] [ERROR]:   src/models/models.ts(849,20): error TS2531: Object is possibly 'null'.
04:09:15.280 cmdout     [automation_generate.sh] [ERROR]:   src/models/models.ts(2817,13): error TS2300: Duplicate identifier 'RequiredActionUnion'.
04:09:15.280 cmdout     [automation_generate.sh] [ERROR]:   src/models/models.ts(2819,13): error TS2300: Duplicate identifier 'RequiredActionUnion'.
04:09:15.280 cmdout     [automation_generate.sh] [ERROR]:   src/utils/deserializeUtil.ts(71,8): error TS2307: Cannot find module '../rest/index.js' or its corresponding type declarations.
04:09:15.280 cmdout     [automation_generate.sh] [ERROR]:   Returned error code: 1
04:09:15.282 cmdout     [automation_generate.sh] [ERROR]: Failed to generate package due to Error: Command closed with code '1'.