Jump to content
McKay Development

Confusing Error

Recommended Posts

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:

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

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.


  • Create New...