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
CommonJS usage broken in v1.0.0 #5032
Comments
Fixed in #5030 will release later today |
I've tried both 1.1.2 and 1.1.1, but require from node.js is not working. Do I need to do something special? N.B. the "import" is not my code. Here is my code:
Edit: This is an old Docker container with Node 10. I'm not able to upgrade it right now. Is the old Node version a problem? |
I will look at this asap |
@msageryd Axios requires at least the latest minor versions of node v12. You can try importing the cjs package directly const axios = require('axios/dist/node/axios.cjs'); // common js bundle but there are no guarantees as some features require v12. |
Hi 👋 Please try the latest pre-release by running the following: npm i axios@1.2.0-alpha.1 Please provide feedback in either the pinned issue or the discussion thread 🧵 |
CommonJS usage seems to be broken in v1.0.0, the
default
export no longer exists (even though the README mentions it). Sample code:The text was updated successfully, but these errors were encountered: