美味的小圓
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)
2 replies
Nestjs project hasn't been support for now?
I got the error message below when deploy my nestjs application, is nestjs hasn't been support for now? Or there is a way to deploy nestjs project to Deno deploy for now? Or this is a problem about a module (not nestjs) which can't run on Deno Deploy?
error: The deployment failed: UNCAUGHT_EXCEPTION
Error: This API is not supported in this environment
at Object.Module._extensions..node (node:module:790:21)
at Module.load (node:module:655:32)
at Function.Module._load (node:module:523:13)
at Module.require (node:module:674:19)
at require (node:module:801:16)
at load (file:///node_modules/.deno/node-gyp-build@4.8.2/node_modules/node-gyp-build/node-gyp-build.js:22:10)
at Object.<anonymous> (file:///node_modules/.deno/argon2@0.41.1/node_modules/argon2/argon2.cjs:7:32)
at Object.<anonymous> (file:///node_modules/.deno/argon2@0.41.1/node_modules/argon2/argon2.cjs:190:4)
at Module._compile (node:module:736:34)
at Object.Module._extensions..js (node:module:757:11)
error: The deployment failed: UNCAUGHT_EXCEPTION
Error: This API is not supported in this environment
at Object.Module._extensions..node (node:module:790:21)
at Module.load (node:module:655:32)
at Function.Module._load (node:module:523:13)
at Module.require (node:module:674:19)
at require (node:module:801:16)
at load (file:///node_modules/.deno/node-gyp-build@4.8.2/node_modules/node-gyp-build/node-gyp-build.js:22:10)
at Object.<anonymous> (file:///node_modules/.deno/argon2@0.41.1/node_modules/argon2/argon2.cjs:7:32)
at Object.<anonymous> (file:///node_modules/.deno/argon2@0.41.1/node_modules/argon2/argon2.cjs:190:4)
at Module._compile (node:module:736:34)
at Object.Module._extensions..js (node:module:757:11)
2 replies