You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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.
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.
The text was updated successfully, but these errors were encountered: