Skip to content

[ERR_PACKAGE_PATH_NOT_EXPORTED] when trying to import anything from lib/helpers #5072

Closed
@daniil4udo

Description

@daniil4udo

Trying to import helper into my project:

import isAbsoluteURL from 'axios/lib/helpers/isAbsoluteURL'

Getting:

Module not found: Error: Package path ./lib/helpers/isAbsoluteURL is not exported from package /Users/.../node_modules/axios (see exports field in /Users/.../node_modules/axios/package.json)

Expected behavior

Was able to import the helper (used to work in 0.27)

Environment

  • Axios Version [1.1.2]
  • Node.js Version [16]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions