-
Notifications
You must be signed in to change notification settings - Fork 790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node "Cannot read properties of undefined (reading 'then') #3697
Comments
Likely caused by #3460 which was unfortunately not marked as breaking. Please note that modules like There is a bold note about this in the readme. |
Since README.md is updated in #3460 - we can probably close this ticket. |
Also, this demo is needed to be updated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
Steps to Reproduce
I tried to run
node -r ./tracing.js index.js
.The
sdk.start().then(...)
is failing - sdk.ts is returning void.I am using plain JavaScript (not typescript).
Expected Result
sdk.start()
should always return same object type: either a promise, a concrete object or undefined. If the returned object is an undefined then.then
should not be called on it.Actual Result
When using webpack - it seems to work for me most time. When using javascript - the returned argument is not a promise and has no
.then
Additional Details
Test procedure
OpenTelemetry Setup Code
package.json
Relevant log output
The text was updated successfully, but these errors were encountered: