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.

TypeError: Cannot read property 'tokens' of undefined

See original GitHub issue

I’m using jest-ts-preprocessor.js from https://github.com/ds300/react-native-typescript-transformer/issues/39#issuecomment-356764981 and after upgrading to version 1.2.6 I’m getting this error:

TypeError: Cannot read property 'tokens' of undefined

      18 |       src
      19 |     }).ast;
    > 20 |     return generate.default(
      21 |       ast,
      22 |       {
      23 |         filename: file,
      
      at new Generator (node_modules/babel-generator/lib/index.js:51:22)
      at Object.exports.default (node_modules/babel-generator/lib/index.js:19:13)
      at Object.process (tools/jest-ts-preprocessor.js:20:28)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ds300commented, May 25, 2018

Alright 1.2.9 is the same as 1.2.5.

0reactions
dlukszacommented, May 25, 2018

OK, will revert to 1.2.5. Thanks for the help and quick responses!

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'token' of undefined
I am facing this error : TypeError: Cannot read property 'token' of undefined - Here's a link! to my github page.
Read more >
TypeError: Cannot read property 'token' of undefined · Issue ...
Issue Type: Bug TypeError: Cannot read property 'token' of undefined Azure Data Studio version: azuredatastudio 1.37.0 (d904740, ...
Read more >
Error: "TypeError: Cannot read property 'token' of...
Error: "TypeError: Cannot read property 'token' of undefined" with Publish to Tableau Server tool.
Read more >
[SOLVED] Cannot read property 'Token' of undefined
I trid running the snippet below just as i found it your doc for sending erc20 token but I keep getting error. const...
Read more >
cannot read properties of undefined (reading 'authorization')
The "cannot read properties of undefined (reading 'authorization')" error typically occurs when trying to access a property of an object that has not...
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