Cannot read property 'key' of undefined / TypeError: Cannot read property 'key' of undefined
See original GitHub issueBefore filling a bug
- have you checked the faq for known issues.
- have you checked existing issues
Describe the bug I am attempting to generate a client from the rundeck api specs. My configuration file is pretty basic and likely to be incomplete, however the error indicates it doesn’t have knowledge of my input-files even though they’re loaded right before the output you see below. rundeck-api-specs
Please provide as much information as you can. This would be:
- OpenAPI files having the issues
DEBUG [4.66 s]: openapi-document/loader-openapi - END [2.09 s]
DEBUG [4.66 s]: openapi-document/individual/transform - SKIPPING
DEBUG [4.66 s]: openapi-document/individual/schema-validator-openapi - SKIPPING
DEBUG [4.66 s]: swagger-document/loader-swagger - END [2.09 s]
DEBUG [4.66 s]: openapi-document/individual/identity - SKIPPING
DEBUG [4.66 s]: swagger-document/individual/transform - SKIPPING
DEBUG [4.66 s]: swagger-document/individual/schema-validator-swagger - SKIPPING
DEBUG [4.66 s]: swagger-document/identity - SKIPPING
DEBUG [4.66 s]: swagger-document/individual/identity - SKIPPING
DEBUG [4.66 s]: openapi-document/openapi-document-converter - SKIPPING
DEBUG [4.66 s]: openapi-document/transform - START inputs = 0
DEBUG [4.66 s]: openapi-document/transform - END [0 s]
DEBUG [4.66 s]: openapi-document/allof-cleaner - START inputs = 0
DEBUG [4.66 s]: openapi-document/allof-cleaner - END [0 s]
DEBUG [4.66 s]: openapi-document/tree-shaker - START inputs = 0
DEBUG [4.66 s]: openapi-document/tree-shaker - END [0 s]
DEBUG [4.66 s]: openapi-document/multi-api-merger - START inputs = 0
C:\Users\Chad.Robinson\.autorest\@autorest_core@3.1.3\node_modules\@autorest\core\dist\src_lib_autorest-core_ts.js - FAILURE {}
Process() cancelled due to exception : **Cannot read property 'key' of undefined / TypeError: Cannot read property 'key' of undefined**
at MultiAPIMerger.get currentInputFilename [as currentInputFilename] (C:\Users\<insert_name_here>\.autorest\@autorestcore@3.1.3\node_modules\@autorest\core\dist\src_lib_autorest-corets.js:12732:31)
at MultiAPIMerger.finish (C:\Users\<insert_name_here>\.autorest\@autorestcore@3.1.3\node_modules\@autorest\core\dist\src_lib_autorest-corets.js:3419:94)
at MultiAPIMerger.runProcess (C:\Users\<insert_name_here>\.autorest\@autorestcore@3.1.3\node_modules\@autorest\core\dist\src_lib_autorest-corets.js:12741:24)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at MultiAPIMerger.getOutput (C:\Users\<insert_name_here>\.autorest\@autorestcore@3.1.3\node_modules\@autorest\core\dist\src_lib_autorest-corets.js:12672:9)
at merge (C:\Users\<insert_name_here>\.autorest\@autorestcore@3.1.3\node_modules\@autorest\core\dist\src_lib_autorest-corets.js:3616:54)
at ScheduleNode (C:\Users\<insert_name_here>\.autorest\@autorestcore@3.1.3\node_modules\@autorest\core\dist\src_lib_autorest-corets.js:1809:33)
- Autorest command used
autorest .\config-file.json --csharp --verbose --debug
Expected behavior The command should have finished for generating a csharp client.
Additional context AutoRest code generation utility [cli version: 3.4.2; node: v12.19.1]
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
TypeError: Cannot read property 'key' of undefined · Issue #5838
If i remove one tr from the template, the problem goes away ! <template v-for="msg in messages"> <tr v-bind:key="msg.value">{{ ...
Read more >Cannot read property 'key' of undefined - Stack Overflow
I have a few objects and I want to create a 'map' array to store the object with one field key as an...
Read more >T285482 TypeError: Cannot read property 'key' of undefined
TypeError : Cannot read property 'key' of undefined. exception.trace. at setStatus <anonymous>:35:65 at Object.setBannerShown <anonymous>:38:528 at Object.
Read more >typeerror: cannot read properties of undefined (reading 'key')
Firstly, the error means that whatever you're using .name on has a value of undefined. Typically this can happen if you're making an...
Read more >“TypeError: Cannot read property 'key' of undefined” in vue
Error in nextTick: “TypeError: Cannot read property 'key' of undefined” in vue. I used same approach as https://streamable.com/zpk4m to make something ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Well there is 3 ways you can go about it:
Thank you, I can appreciate the time you took to help me out today. I will take a look into those options you provided.