python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Unable to import/require ES module from common JS
I'm using electron to build a UI for a specific project, the problem is that I wrote the core code in ES while apparently ES breaks electron.
What I am trying to do is to export some callback function...
The pro coder not really xd
Votes: 0
Answers: 1
angular project built with SystemJs loader and commonjs module can not use angular 12 library created with angular cli
I created a library with angular 12.
the library is using templateUrl.
I published the library to npm.
I created another application with angular cli that uses this library and have no problem.
now I ...
uriel twito
Votes: 0
Answers: 0
Is CommonJS 'require' still used or deprecated?
Current Javascript adopts import from ES6 as a standard way to import modules.
However, I sometimes see codes using CommonJS require instead of import.
I first wondered whether two can be used togethe...

goldenriver4422
Votes: 0
Answers: 2
Configure Rollup to add file extensions into import/require statements
I have a hybrid cjs/esm Node package written in Typescript.
It consists of, let's say, two files - core.ts and extra.ts and I want to keep them separate. extra.ts imports core.ts (literally import { ....
Killy.MXI
Votes: 0
Answers: 1