question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ts-interface-generator `Cannot read properties of undefined (reading 'getText')`

See original GitHub issue

During 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: image

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:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
akudevcommented, Jul 25, 2022

@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!

1reaction
dfenerskicommented, Jul 4, 2022

It was indeed broken metadata on my part. Sorry for the inconvenience, thanks for the support and the insights! Looking forward to the UI5Con…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found