ts-interface-generator `Cannot read properties of undefined (reading 'getText')`
See original GitHub issueDuring a migration of a JS library to TS format, I’ve ran the generator a couple of times to generate interfaces for controls as they were being migrated. Suddenly the generator started crashing with the same error:
Adding --log-level “debug” gave me no useful information about the nature of the error, although I can add logs with the flag if it is necessary. Debugging also seemed a bit harsh, as one is limited to the compiled dist
files, because this generator is not yet open-sourced as per my understanding.
Deleting node_modules
and doing re-install had no effect.
Am I missing something?
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
TypeError: Cannot read property 'getText' of undefined
I'm getting this error in my protractor script using typescript with cucumber. TypeError: Cannot read property 'getText' of undefined And the ...
Read more >Cannot read property 'text' of undefined | Jira
Cause and possible solutions: This can be caused by more than one thing: The Board's estimation: If you go to the board's configuration...
Read more >How to Fix Uncaught TypeError: Cannot read properties of ...
You can test this very easily in the Chrome Developer Console. cannot read property of undefined ✓ Solved: ERROR TypeError: Cannot read ......
Read more >SAP ui5-typescript Analysis & Statistics - Devscope.io
ui5-typescript ts-interface-generator `Cannot read properties of undefined (reading 'getText')` 5 closed 🗓️ 4 months ago.
Read more >undefined error in protractor on using a gettex...anycodings
undefined error in protractor on using a gettext() function and using it in other file I have written a utility funct ...
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 Free
Top 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
@dfenerski the fix I just pushed recognizes a “metadata” member with no initialization and points this out in a warning. The class is then just ignored instead of crashing the generator. Thanks for describing the cause of the issue, so I could prevent others from running into the same problem!
It was indeed broken metadata on my part. Sorry for the inconvenience, thanks for the support and the insights! Looking forward to the UI5Con…