Closed daveisfera closed 4 years ago
Probably also worth pointing out that we're looking into switching to using the ESM support in node 14, but we're currently blocked by this issue
This is probably related to #866.
Yes, this is a duplicate of that issue
Use of
esm
causes optional chaining to be viewed as invalid syntax. Here's an example:Running
node --experimental-specifier-resolution=node test.js
outputs the following:But running
node -r esm test.js
outputs this error: