Skip to content

ERR_PACKAGE_PATH_NOT_EXPORTED #116

Description

@craigphicks

Both of these import methods are throwing the error message ERR_PACKAGE_PATH_NOT_EXPORTED

import eachDeep from 'deepdash-es/eachDeep';

and

import {eachDeep} from 'deepdash-es/standalone';

Details:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './standalone' is not defined by "exports" in ...node_modules/deepdash-es/package.json

$ node --version
v14.17.4

$ yarn --version
1.22.11

$ npm --version
7.21.1

$ npx tsc --version
Version 4.4.3

It's obviously not a problem with deepdash but a problem with npm's new export interface and compatibility. But it is a barrier to using deepdash.

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