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

Using conditional chaining `const foo = bar?.baz || ''` causes syntaz error.

Environment: Node 12.13.1, both Windows 10 and Ubuntu 16 Snippet to reproduce: **package.json** ```json { "dependencies": { "esm": "*" }, "private": true, "type": "module" } ``` **module.js** ```js export const...

I'm on Node 16.13.0, and if I run a script with `-r esm`, I get a syntax error that isn't present when running without it. Reproduceable example: This does not...

Launched via $ pm2 start ecosystem.config.js, with config: ``` module.exports = { apps : [{ name: 'specserv', script: 'server.js', instances: 1, node_args: '-r esm', autorestart: true, watch: true, max_memory_restart: '1G',...

See context here: https://github.com/stackblitz/webcontainer-core/issues/354 Summary: https://github.com/stackblitz/core/issues/647#issuecomment-1144044823 I opened an issue here: https://github.com/broccolijs/broccoli/issues/498 Which is likely not what the broccoli maintainers want. But idk what a better path forwards is.

`const fs = require('fs'); const path = require('path'); require('@babel/register')({ cache: false, }); process.env.ESM_DISABLE_CACHE = true const requireModule = require('esm')(module, { cache: false, cjs: { cache: false }, force: true }...

Hi! I'm not sure where to start debugging, can you help me? Everything worked well on my dev machine: ```text > [email protected] test > bash test/all.sh Lint: +OK no messages...

# Problem: Using `esm` to import module that imports builtin Node modules using `'node:*'` URL results with an error: ``` file:///C:/NodeJsProjects/esm-error-test/some-external-module.mjs:1 Error [ERR_INVALID_PROTOCOL]: Protocol 'node:' not supported. Expected 'file:' at...

I am trying to load an ES module from a VS Code extension, see [this](https://stackoverflow.com/questions/71927205/how-to-use-get-port-package-from-a-vs-code-extension) question on stackoverflow. I believe I have run into [this](https://github.com/microsoft/vscode/issues/130367) issue. In another [issue](https://github.com/electron/electron/issues/21457#issuecomment-567365372) someone...