Node:net capability problem?
I try to run my nestjs project on Deno 2.0.1, but it run out with the error below, but with Deno 2.0.0, there is no error, what happened?
[Nest] 1283 - 10/17/2024, 9:48:01 AM ERROR [ExceptionHandler] Cannot read properties of undefined (reading 'setNoDelay')
TypeError: Cannot read properties of undefined (reading 'setNoDelay')
at TCP.setNoDelay (ext:deno_node/internal_binding/tcp_wrap.ts:229:28)
at Socket.setNoDelay (node:net:595:20)
at new Connection (file:///Users/kay/Desktop/xxx/node_modules/.deno/mysql2@3.11.3/node_modules/mysql2/lib/connection.js:64:21)
at Object.exports.createConnection (file:///Users/kay/Desktop/xxx/node_modules/.deno/mysql2@3.11.3/node_modules/mysql2/index.js:10:10)
at DrizzleMySqlService.getDrizzle (file:///Users/kay/Desktop/xxx/node_modules/.deno/@knaadh+nestjs-drizzle-mysql2@1.0.1/node_modules/@knaadh/nestjs-drizzle-mysql2/src/mysql.service.js:11:40)
at InstanceWrapper.useFactory [as metatype] (file:///Users/kay/Desktop/xxx/node_modules/.deno/@knaadh+nestjs-drizzle-mysql2@1.0.1/node_modules/@knaadh/nestjs-drizzle-mysql2/src/mysql.module.js:19:53)
at Injector.instantiateClass (file:///Users/kay/Desktop/xxx/node_modules/.deno/@nestjs+core@10.4.4_3/node_modules/@nestjs/core/injector/injector.js:368:55)
at callback (file:///Users/kay/Desktop/xxx/node_modules/.deno/@nestjs+core@10.4.4_3/node_modules/@nestjs/core/injector/injector.js:65:45)
at async Injector.resolveConstructorParams (file:///Users/kay/Desktop/xxx/node_modules/.deno/@nestjs+core@10.4.4_3/node_modules/@nestjs/core/injector/injector.js:144:24)
at async Injector.loadInstance (file:///Users/kay/Desktop/xxx/node_modules/.deno/@nestjs+core@10.4.4_3/node_modules/@nestjs/core/injector/injector.js:70:13)
[Nest] 1283 - 10/17/2024, 9:48:01 AM ERROR [ExceptionHandler] Cannot read properties of undefined (reading 'setNoDelay')
TypeError: Cannot read properties of undefined (reading 'setNoDelay')
at TCP.setNoDelay (ext:deno_node/internal_binding/tcp_wrap.ts:229:28)
at Socket.setNoDelay (node:net:595:20)
at new Connection (file:///Users/kay/Desktop/xxx/node_modules/.deno/mysql2@3.11.3/node_modules/mysql2/lib/connection.js:64:21)
at Object.exports.createConnection (file:///Users/kay/Desktop/xxx/node_modules/.deno/mysql2@3.11.3/node_modules/mysql2/index.js:10:10)
at DrizzleMySqlService.getDrizzle (file:///Users/kay/Desktop/xxx/node_modules/.deno/@knaadh+nestjs-drizzle-mysql2@1.0.1/node_modules/@knaadh/nestjs-drizzle-mysql2/src/mysql.service.js:11:40)
at InstanceWrapper.useFactory [as metatype] (file:///Users/kay/Desktop/xxx/node_modules/.deno/@knaadh+nestjs-drizzle-mysql2@1.0.1/node_modules/@knaadh/nestjs-drizzle-mysql2/src/mysql.module.js:19:53)
at Injector.instantiateClass (file:///Users/kay/Desktop/xxx/node_modules/.deno/@nestjs+core@10.4.4_3/node_modules/@nestjs/core/injector/injector.js:368:55)
at callback (file:///Users/kay/Desktop/xxx/node_modules/.deno/@nestjs+core@10.4.4_3/node_modules/@nestjs/core/injector/injector.js:65:45)
at async Injector.resolveConstructorParams (file:///Users/kay/Desktop/xxx/node_modules/.deno/@nestjs+core@10.4.4_3/node_modules/@nestjs/core/injector/injector.js:144:24)
at async Injector.loadInstance (file:///Users/kay/Desktop/xxx/node_modules/.deno/@nestjs+core@10.4.4_3/node_modules/@nestjs/core/injector/injector.js:70:13)
1 Reply
Looks like a regression on our side. We're already fixing it. Please downgrade to 2.0.0 and wait till later tonight for 2.0.2