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
{{ message }}
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.
I am trying to generate TypeScript definition file (.d.ts) from JavaScript file (*.js)...It has converted most of the files expect js file contains the following statement
When i compile the file, i am getting the following exception:
ReferenceError: Java is not defined
at Function.get ATTRIBUTE [as ATTRIBUTE] (eval at <anonymous> (C:\Users\uuk\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\run.js:71:64), <anonymous>:95:27)
at getResult (C:\Users\uuk\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\index.js:148:47)
at getTopLevelDeclarations (C:\Users\uuk\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\index.js:124:17)
at Object.generateIdentifierDeclarationFile (C:\Users\uuk\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\index.js:68:20)
at Object.<anonymous> (C:\Users\uuk\AppData\Roaming\npm\node_modules\dts-gen\bin\lib\run.js:71:24)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
I feel modules related to Java is not getting loaded...
Can you please help me to resolve this?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am trying to generate TypeScript definition file (.d.ts) from JavaScript file (*.js)...It has converted most of the files expect js file contains the following statement
return Java.type('com.test.TestExample').START_ELEMENT
When i compile the file, i am getting the following exception:
I feel modules related to Java is not getting loaded...
Can you please help me to resolve this?
The text was updated successfully, but these errors were encountered: