You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For seemingly unknown causes, when running transpiled code (either through ts-node, or running the plain javascript after transpiling it with tsc) the code throws the error "Cannot read property 'isNative' of undefined."
The piece of code that looks to be the problem is inside source-map-support, as follows:
if(frame.isNative())// Here sometimes "frame" is undefined
The text was updated successfully, but these errors were encountered:
dottgonzo
changed the title
lib throws error with "isNative of undefined"
lib throws error with "Cannot read property 'isNative' of undefined"
Apr 29, 2021
I have also ran into this. I'm unsure exactly what causes it but found that some combination of using Bunyan logger in a promise chain caused the issue.
I found that changing this: myPromise().catch(logger.error)
to this: myPromise().catch(err => logger.error(err))
For seemingly unknown causes, when running transpiled code (either through ts-node, or running the plain javascript after transpiling it with tsc) the code throws the error "Cannot read property 'isNative' of undefined."
The piece of code that looks to be the problem is inside source-map-support, as follows:
The text was updated successfully, but these errors were encountered: