Skip to content

v7.0.1 import fails w/ Node.js v17.3.0 #619

@bompus

Description

@bompus

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.

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions