Skip to content
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

Typescript thing? #13

Open
Bartman0 opened this issue May 5, 2024 · 0 comments
Open

Typescript thing? #13

Bartman0 opened this issue May 5, 2024 · 0 comments

Comments

@Bartman0
Copy link

Bartman0 commented May 5, 2024

Sorry about the vague description. I am new to Typescript but that's what they use in Tableau Connector SDK.
I am trying to create a delta sharing connector for Tableau and I am using this Javascript package to accomplish that.
Problem is that when creating the connector everything work as planned until I either import or require this package.
I have no clue why and I can't deduce where the source of the problem lies.

Might there be any reason why this package may be causing issues when using in Typescript enviroments?

Also, a Tableau connector is essentially a web page with Typescript/Javascript to do its thing, and the console shows this deeply nested stack trace.

The error is at line 41 of memstore.js:

util.inherits(MemoryCookieStore, Store);

and the stack trace is:

Uncaught TypeError: util.inherits is not a function
    at 2Lnsa.6c1baa97b08bd7df (memstore.js:41:6)
    at newRequire (index.e63b3b5b.js:71:24)
    at localRequire (index.e63b3b5b.js:84:35)
    at 2yy2d.21d22bb892bb7293 (cookie.js:37:25)
    at newRequire (index.e63b3b5b.js:71:24)
    at localRequire (index.e63b3b5b.js:84:35)
    at iMyDQ.f99ee3a45257f86a (cookies.js:3:13)
    at newRequire (index.e63b3b5b.js:71:24)
    at localRequire (index.e63b3b5b.js:84:35)
    at iDDXb.5957cd4242ebf2f2 (index.js:18:15)
    

if anybody knows what might be going on, I would appreciate some hints to fix this.
If not, I also settle for some approaches on how to go about this. ;-)
Google searches haven't resulted in anything that I could apply, let alone use.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant