file:///path/to/feature.type.js:1
import { filter, indexBy, map, omit, path, pick } from 'rambda';
^^^^^^
SyntaxError: Named export 'filter' not found. The requested module 'rambda' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'rambda';
const { filter, indexBy, map, omit, path, pick } = pkg;
I'm using pnpm 6.25.0-2 with Node.js v17.3.0
package.json has
"type": "module"specified for Node.js ESM support.