MJinH opened a new issue, #31:
URL: https://github.com/apache/age-viewer/issues/31

   **Describe the bug**
   I'm trying to connect to age-viewer desktop app on window but I keep getting 
this message:
   
   
C:\Users\mjh19\OneDrive\Desktop\age-viwer-electron\age-viewer\backend\src\tools\AGEParser.js:141
   undefined
   Error [ERR_REQUIRE_ESM]: require() of ES Module 
C:\Users\mjh19\OneDrive\Desktop\age-viwer-electron\age-viewer\backend\node_modules\antlr4\src\antlr4\index.js
 from 
C:\Users\mjh19\OneDrive\Desktop\age-viwer-electron\age-viewer\backend\src\tools\AGEParser.js
 not supported.
   Instead change the require of index.js in 
C:\Users\mjh19\OneDrive\Desktop\age-viwer-electron\age-viewer\backend\src\tools\AGEParser.js
 to a dynamic import() which is available in all CommonJS modules.
   at Object.<anonymous> 
(C:\Users\mjh19\OneDrive\Desktop\age-viwer-electron\age-viewer\backend\node_modules\@babel\node\lib\_babel-node.js:176:21)
 {
     code: 'ERR_REQUIRE_ESM'
   }
   
   
   **Additional context**
   Adding "type": "commonjs" in package.json but it doesn't work for me and my 
current node version is v16.17.0.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@age.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to