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

Importing axios is not executed crrectly #224

Open
70nyIT opened this issue Sep 28, 2023 · 0 comments
Open

Importing axios is not executed crrectly #224

70nyIT opened this issue Sep 28, 2023 · 0 comments

Comments

@70nyIT
Copy link

70nyIT commented Sep 28, 2023

I'm opening an issue but I think it's more a guidance or discussion sort of question.

I'm developing an SDK and I'm using axios, imported like suggested in the official documentation

import axios from axios

I then build and publish it locally using yalc publish and I use the package on my sample problem (running yalc update). I'm using axios in a component of the SDK in a very standard way

axios.post(url, params);

The problem is that axios is a string, specifically this string /static/media/axios.5036f7f7333f291ef6b3.cjs (I obtain that value by console.log the axios variable in the SDK code).

So it is not correctly imported. I've always used axios and I've never had this issue before, and if the SDK gets compiled and published, this issue is no more present.

axios is correctly set as a dependency.

Any idea or suggestion on how to solve this issue? Or someone that has already went through it? Since axios is one of the most popular libraries, my bet is that someone else already had a similar issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant