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

Comments

@markwoon
Copy link

commented Oct 14, 2016

This works with 0.14.0 but fails with 0.15.0:

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

This comment has been minimized.

Copy link
Member

commented Oct 14, 2016

Do you have an error message?

@markwoon

This comment has been minimized.

Copy link
Author

commented Oct 14, 2016

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

This comment has been minimized.

Copy link
Member

commented Oct 15, 2016

Fixed in v0.15.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.