https://signoz.io logo
#general
Title
# general
w

wafot

04/19/2023, 8:53 AM
Hi Guys, I'm new on signoz, I'm trying to use signoz in next.js 13, File: tracing.js sdk.start() .then(() => console.log('Tracing initialized')) ^ TypeError: Cannot read properties of undefined (reading 'then') at Object.<anonymous> (/home/dell/Desktop/intelops/open-telemetry-frontend/next-app-for-test/tracing.js323) at Module._compile (nodeinternal/modules/cjs/loader1254:14) at Module._extensions..js (nodeinternal/modules/cjs/loader1308:10) at Module.load (nodeinternal/modules/cjs/loader1117:32) at Module._load (nodeinternal/modules/cjs/loader958:12) at Function.executeUserEntryPoint [as runMain] (nodeinternal/modules/run main81:12) at nodeinternal/main/run main module23:47 Node.js v18.14.2 I've tried debbuging this on console, which resulted that, sdk.start() was undefined Please let me know how to fix this
r

Romario Lopez C

04/21/2023, 8:29 PM
Sdk.start doesn’t return a promise anymore, docs are outdated
Just do:
sdk.start()
a

Ankit Nayan

04/22/2023, 6:18 AM
Then is not a promise anymore, docs are outdated
@Vishal Sharma and @Ashu can you check if we need to update the docs?
a

Ashu

04/23/2023, 9:27 AM
ok @Ankit Nayan
22 Views