Class extends value undefined is not a constructor or null

See original GitHub issue

Issue :

When I run my project using node ts-node/register I don’t get any errors, however with ts-jest I receive the following:

 ● Test suite failed to run

    TypeError: Class extends value undefined is not a constructor or null

      at Object.<anonymous> (../node_modules/google-gax/src/grpc.ts:110:43)
      at Object.<anonymous> (../node_modules/google-gax/src/index.ts:32:1)

The file grpc.ts doesn’t actually exist, it’s a JS file really. I wonder why it’s trying to include grpc.ts when only a js file exists.

Expected behavior :

ts-jest should be able to run file like ts-node without the above error.

Issue Analytics

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

github_iconTop GitHub Comments

37reactions
shivanshutiari319commented, Dec 26, 2019

i also go through thr same problem as a begginer.my fault is that i just use c instead of C in component.i know that is very silly mistake.

18reactions
aditisaran26commented, Jul 5, 2020

I was getting the same error since it was my first time with component. The error was instead of writing Component ,i wrote component. so check whether it is C or c .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Class extends value undefined is not a function or null - Stack ...
I am getting the following error when trying to create these entities. TypeError: Class extends value undefined is ...
Read more >
Class extends value undefined is not a constructor or null in ...
Describe the bug On using 3.53.0 version of "@aws-sdk/client-*" packages, we are getting the following error on running our tests: ...
Read more >
TypeError: Class extends value undefined is not a ... - Drupal
Initial searching seems to imply that this indicates an issue with a circular dependency. Might have to be a separate issue, but there...
Read more >
typeerror: class extends value undefined is not a ... - You.com
TypeError : Class extends value undefined is not a function or null. Start > Run > AppWiz.cpl > Uninstall node.js. Delete the node...
Read more >
TypeError: Class extends value undefined is not a constructor ...
[moved to issue] Tutorial problem: TypeError: Class extends value undefined is not a constructor or null - Get Help and Help Others -...
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