Jump to content
McKay Development

Recommended Posts

Posted

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:
error.thumb.png.c28c61b03b658e503924efe3ca631ba2.png
 

Posted

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?

Posted

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!

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...