Category "commonjs"

Error "File is a commonJS module; it may be converted to an ES6 module. ts(80001)"

Developing javascript in vscode, I see this error on line const Koa = require("Koa");: File is a CommonJS module; it may be converted to an ES6 module. ts(8

'X Is not a function' in CommonJS

I've got the following code I transformed from a Trypescript, ESM-syntax based file to a Javascript, CJS-syntax file. const apiClientFactory = require("@vue-sto

How to "require(module)" in mongo shell

I am writing a mongo shell script for data management. I want to write it using modular code that makes use of function libraries as modules. In some cases, m