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.

Cannot read property 'textChanges' of undefined

See original GitHub issue

Hi! The program sometimes crashes, could you fix it? 😃

C:\Users\mokuo\Documents\Projects\scrum-board-front-end\node_modules\prettier\index.js:9755
    throw error.stack;
    ^
TypeError: Cannot read property 'textChanges' of undefined
    at Object.organizeImports [as preprocess] (C:\Users\mokuo\Documents\Projects\scrum-board-front-end\node_modules\prettier-plugin-organize-imports\index.js:17:43)
    at Object.parse (C:\Users\mokuo\Documents\Projects\scrum-board-front-end\node_modules\prettier\index.js:9734:21)
    at coreFormat (C:\Users\mokuo\Documents\Projects\scrum-board-front-end\node_modules\prettier\index.js:13252:23)
    at format (C:\Users\mokuo\Documents\Projects\scrum-board-front-end\node_modules\prettier\index.js:13510:73)
    at formatWithCursor (C:\Users\mokuo\Documents\Projects\scrum-board-front-end\node_modules\prettier\index.js:13526:12)
    at C:\Users\mokuo\Documents\Projects\scrum-board-front-end\node_modules\prettier\index.js:44207:15
    at Object.format (C:\Users\mokuo\Documents\Projects\scrum-board-front-end\node_modules\prettier\index.js:44226:12)
    at _default (C:\Users\mokuo\Documents\Projects\scrum-board-front-end\node_modules\pretty-quick\dist\processFiles.js:42:29)
    at _default (C:\Users\mokuo\Documents\Projects\scrum-board-front-end\node_modules\pretty-quick\dist\index.js:58:29)
    at Object.<anonymous> (C:\Users\mokuo\Documents\Projects\scrum-board-front-end\node_modules\pretty-quick\bin\pretty-quick.js:12:27)  

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
SUCHMOKUOcommented, Mar 9, 2020

OK. Thank for your working 😃

0reactions
simonhaenischcommented, Mar 9, 2020

I just released 1.0.1, can you give it a try please and let me know if it happens again? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'main_text_matched_substrings' of ...
Initially, it works because you have options thanks to your initialisation, so option.structured_formatting exists and is not undefined. However ...
Read more >
JS error. Cannot read property 'text' of undefined...unsure what
I run my code and in the console, I get an error of "uncaught TypeError: Cannot read property 'text' of undefined. Any help...
Read more >
Uncaught TypeError: Cannot read property 'txt' of undefined
I am new to PnP JS and I want to try it. Part my code: import pnp from "sp-pnp-js"; ...
Read more >
TextInput - React Native
The most basic use case is to plop down a TextInput and subscribe to the onChangeText events to read the user input.
Read more >
Internal error: Cannot read property 'text' of undefined - Genuitec
I've checked in the code where this message can come from. This looks indeed like a problem with TSLint. Can you please share...
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