![javascript - "require is not defined" error comes when i try to import js file (with node modules) to my main electron js file - Stack Overflow javascript - "require is not defined" error comes when i try to import js file (with node modules) to my main electron js file - Stack Overflow](https://i.stack.imgur.com/mfF4e.png)
javascript - "require is not defined" error comes when i try to import js file (with node modules) to my main electron js file - Stack Overflow
![Provide a way to add the '.js' file extension to the end of module specifiers · Issue #16577 · microsoft/TypeScript · GitHub Provide a way to add the '.js' file extension to the end of module specifiers · Issue #16577 · microsoft/TypeScript · GitHub](https://user-images.githubusercontent.com/216566/27226007-bef8b658-5294-11e7-8723-b95f90fbfe70.png)
Provide a way to add the '.js' file extension to the end of module specifiers · Issue #16577 · microsoft/TypeScript · GitHub
![javascript - How to import Class type definitions in .js file using JSDocs from a type declaration file? - Stack Overflow javascript - How to import Class type definitions in .js file using JSDocs from a type declaration file? - Stack Overflow](https://i.stack.imgur.com/r9Owl.png)