Skip to content

Node v20.6: Class extends value undefined is not a constructor or null #10338

@jorenvandeweyer

Description

@jorenvandeweyer

Issue description

Class extends value undefined is not a constructor or null

Expected Behavior

Just work like on node 20.5

Actual Behavior

/usr/src/app/node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/typeorm/connection/Connection.js:12
class Connection extends DataSource_1.DataSource {
                                      ^

TypeError: Class extends value undefined is not a constructor or null
    at Object.<anonymous> (/usr/src/app/node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/typeorm/connection/Connection.js:12:39)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at Object.<anonymous> (/usr/src/app/node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/typeorm/index.js:142:20)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)

Node.js v20.6.0

Steps to reproduce

Upgrade to node 20.6

My Environment

Dependency Version
Operating System Docker
Node.js version 20.6.0
Typescript version 5.2.2
TypeORM version 0.3.17

Additional Context

No response

Relevant Database Driver(s)

  • aurora-mysql
  • aurora-postgres
  • better-sqlite3
  • cockroachdb
  • cordova
  • expo
  • mongodb
  • mysql
  • nativescript
  • oracle
  • postgres
  • react-native
  • sap
  • spanner
  • sqlite
  • sqlite-abstract
  • sqljs
  • sqlserver

Are you willing to resolve this issue by submitting a Pull Request?

No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions