esm icon indicating copy to clipboard operation
esm copied to clipboard

Tomorrow's ECMAScript modules today!

Results 93 esm issues
Sort by recently updated
recently updated
newest added

Let's define two files - `foo` and `index`. Then lets mock them using `Module._load` based mocker. ```js // foo.js export default () => 'FOO'; ``` ```js // index.js import foo...

question

I had to kill the `node -r esm` require as it never finishes. ``` bash-4.4# node > var resolveDir = require('resolve-dir'); undefined > resolveDir [Function: resolveDir] > (To exit, press...

bug

#765 provided a fix for native modules in Jest context using standard cache. The repro still does not fully function, now due to a different reason. I have added a...

bug

First off, fantastic project, it was getting to be a real headache to have to use `require()` in Electron code, and this project provides a much cleaner solution than running...

enhancement

Hello, i'm using the following code and it seems to execute the function in the import even though i haven't even called the function yet. Any reason for this behavior?...

We have an inhouse developed module that we need to use in a commonjs project. In case in main.page.ts we import login.page than an **"Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:_AutomationProjects\CTA\Playwright\dist\page-objects\esm2020\lib\login.page'**...

Hello, I use pm2+esm to start the project, but the following error occurs: "Parse is not defined". Parse is a global object in the third-party package ["parse-server".](https://www.npmjs.com/package/parse-server) ``` const brand...

This one is weird. Docker image node:16 or node:18. Running `yarn install` I get the following on this: ``` [1/5] ⠄ appium-chromedriver [2/5] ⠄ sharp [3/5] ⠄ appium [4/5] ⠄...

using esm version 3.2.25 with node v16.19.1 ```js let s = "a string"; // a comment with the word eval let x = { a: "b" } console.log(x?.a); ``` does...

I received a bug report from one of our users and we were able to find the following behavior: ``` npm i [email protected] esm ``` The following works: ``` node...