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

axios 0.15 doesn't work with SystemJS #485

Closed
markwoon opened this issue Oct 14, 2016 · 3 comments
Closed

axios 0.15 doesn't work with SystemJS #485

markwoon opened this issue Oct 14, 2016 · 3 comments

Comments

@markwoon
Copy link

This works with 0.14.0 but fails with 0.15.0:

 System.import("/js/vendor/axios.js")
        .then(function(module) {
          alert('hello');
        });
@mzabriskie
Copy link
Member

Do you have an error message?

@markwoon
Copy link
Author

Here's the error I get:

system.js:4 Uncaught (in promise) Error: (SystemJS) XHR error (404 Not Found) loading http://localhost/js/undefined.js
    Error: XHR error (404 Not Found) loading http://localhost/js/undefined.js
    Error loading http://localhost/js/undefined.js as "undefined" from http://localhost/js/vendor/axios.js

You can see it in action here: http://codepen.io/anon/pen/BLPPNJ?editors=1111

If you revert to 0.14.0 you'll get the alert.

@nickuraltsev
Copy link
Member

Fixed in v0.15.1.

@axios axios locked and limited conversation to collaborators May 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants