ctimmerm / axios-mock-adapter

Axios adapter that allows to easily mock requests
MIT License
3.44k stars 244 forks source link

The newest version mock(1.18.1) can not run on IE11 #254

Closed nttd-haohe closed 4 years ago

nttd-haohe commented 4 years ago

Browser:IE11 OS:Win10 babel-polyfill is working, and the 1.7.0 is OK.

The vue page can not be displayed. Because the error below.

TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them

If the mock's response has data, the error will be throw.

chaitu9916 commented 4 years ago

Try version 1.16.0 with Axios 0.18

SylRob commented 4 years ago

I have the same problem on IE11 with 1.18.0 (1.17.0 working fine) but with a different error report.

Invalid Calling Object error
bewildergeist commented 4 years ago

See also #255, probably same issue. The issue is clearly with axios-mock-adapter from 1.18.0 and newer.

Chicopower commented 4 years ago

Same problem here. "axios-mock-adapter": "1.18.1" = Not working with IE11 "axios-mock-adapter": "1.17.0" = Working with IE11

On my side, using the mock adapter 1.18.1 just don't mock my calls with IE11. Working OK with other browsers.

mjhenkes commented 4 years ago

This has been fixed: https://github.com/ctimmerm/axios-mock-adapter/pull/262 It just needs to be released.

@ctimmerm Pretty Please? 😬 🥺

tomer78 commented 4 years ago

Hi, Thank you for the fix for ie11 error. Is there any estimation on when the fix will be released?

ctimmerm commented 4 years ago

Fixed in 1.18.2

mjhenkes commented 4 years ago

Thanks @ctimmerm !