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

Compilation Error with latest node.js #25

Open
Ashutosh-Trivedi opened this issue Jul 12, 2018 · 2 comments
Open

Compilation Error with latest node.js #25

Ashutosh-Trivedi opened this issue Jul 12, 2018 · 2 comments

Comments

@Ashutosh-Trivedi
Copy link

MarkLogic Typescript definition gives compilation error Duplicate identifier 'require' with latest node.js version (10.5.2)

declare function require(location: string): Object; in function.d.ts has the same function defined in node/index.d.ts.

@grtjn
Copy link
Owner

grtjn commented Jul 16, 2018

That might be because index includes both types and functions, and functions also includes types. Perhaps node is not detecting the double import, and complaining as a result. I'd have to take a closer look.

Are there some easy steps to reproduce this on my side?

@Ashutosh-Trivedi
Copy link
Author

I tried this
I load the marklogic-typescript-definition in visual studio code after installing latest node, typescript and the dependencies using npm install and npm i --save-dev @types/node. it shows me compilation error sign on the above function. similarly when I import the marklogic-typescript-definition in my application and build the project using tslint it gives me compilation error.

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

2 participants