Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why cannot import ./lib/core/settle #5642

Open
cdx111 opened this issue Apr 10, 2023 · 3 comments
Open

why cannot import ./lib/core/settle #5642

cdx111 opened this issue Apr 10, 2023 · 3 comments
Labels
status::duplicate This issue or pull request already exists

Comments

@cdx111
Copy link

cdx111 commented Apr 10, 2023

Describe the issue

error - ./node_modules/@vespaiach/axios-fetch-adapter/index.js:2:0
Module not found: Package path ./lib/core/settle is not exported from package /.../node_modules/axios (see exports field in /.../node_modules/axios/package.json)

Line 2 it's complaining about https://github.com/vespaiach/axios-fetch-adapter/blob/main/index.js#L2

Using

axios 1.1.3
axios-fetch-adapter 0.3.1
next.js 12.3.1

Example Code

No response

Expected behavior

No response

Axios Version

^1.3.5

Adapter Version

Fetch

Browser

Chrome

Browser Version

No response

Node.js Version

No response

OS

No response

Additional Library Versions

No response

Additional context/Screenshots

No response

@svyatoslavratov
Copy link

I got this error too.

I replace import from require("axios/lib/core/settle") on require("axios/unsafe/core/settle") and work for me.

@ghost
Copy link

ghost commented May 10, 2023

this is a bug in that library not axios isn't it? it seems like it should be filed in their repo.

@ghost
Copy link

ghost commented May 10, 2023

Ah, it's actually duplicate of #5254 so this bug should be closed. And that one may be considered valid or invalid later.

@DavidJDallas DavidJDallas added the status::duplicate This issue or pull request already exists label Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status::duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants