aethez Posted July 28, 2020 Report Share Posted July 28, 2020 Hello, I have recently stumbled upon a weird error. I have never seen this error before all I know that it happens when I set my cookies (presumably when pulling offers). I am pretty sure that it's my code being bad but I have recently started using Typescript so I don't know if that can affect it. I have used this module before without any problems at all. Anyway here is the error: Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted July 29, 2020 Report Share Posted July 29, 2020 I don't really know an awful lot about TypeScript, but my guess would be that something with TS is causing that error. TradeOffer is a function, which should not have any problems being used as a constructor, but maybe TS sees that it's not an ES6 class and decrees that it shouldn't be used as a constructor. What node version are you using? Quote Link to comment Share on other sites More sharing options...
aethez Posted July 29, 2020 Author Report Share Posted July 29, 2020 I am currently using v.12.16.3 I already got the issue fixed though, like you said it was an issue with me Importing TradeOffer. I removed all my code with that import and it started working again. Thanks alot! Dr. McKay 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.