https://signoz.io logo
#support
Title
# support
r

Romario Lopez C

04/12/2023, 7:31 PM
Hello! I’m trying to instrument a node app, using the guide from the website I get:
Copy code
> gateway@1.0.0 start
> TS_NODE_BASEURL=./build node -r tsconfig-paths/register build/src/tracing.js build/src/main.js

/Users/rlopez/repos/gitstart/gateway/build/src/tracing.js:35
  .then(() => console.log("Tracing initialized"))
  ^

TypeError: Cannot read properties of undefined (reading 'then')
    at Object.<anonymous> (/Users/rlopez/repos/gitstart/gateway/build/src/tracing.js:35:3)
    at Module._compile (node:internal/modules/cjs/loader:1097:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1151:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47

Node.js v18.4.0
Does someone has an idea what could be wrong?
Seems that
sdk.start()
is undefined
I think
start()
type changed, is not a promise anymore 🤔
Now it works but my server doesn’t start
p

Palash Gupta

04/12/2023, 7:50 PM
@Vishal Sharma
r

Romario Lopez C

04/12/2023, 7:56 PM
I went with the
init
option, is working