Base solution for your next web application
Open Closed

Running on IE11 error #4055


User avatar
0
advaniamobilepay created

Hi, I'm running the angular 2 project and I get an error when running on IE11 locally (no error in Chrome):

<span style="color:#FF0000">ERROR Error: Uncaught (in promise): Error: Invalid argument. Error: Invalid argument. at Anonymous function (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:9732:13">http://localhost:4200/vendor.bundle.js:9732:13</a>) at ZoneDelegate.prototype.invoke (<a class="postlink" href="http://localhost:4200/polyfills.bundle.js:7071:13">http://localhost:4200/polyfills.bundle.js:7071:13</a>) at onInvoke (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:112547:21">http://localhost:4200/vendor.bundle.js:112547:21</a>) at ZoneDelegate.prototype.invoke (<a class="postlink" href="http://localhost:4200/polyfills.bundle.js:7071:13">http://localhost:4200/polyfills.bundle.js:7071:13</a>) at Zone.prototype.run (<a class="postlink" href="http://localhost:4200/polyfills.bundle.js:6833:17">http://localhost:4200/polyfills.bundle.js:6833:17</a>) at Anonymous function (<a class="postlink" href="http://localhost:4200/polyfills.bundle.js:7466:17">http://localhost:4200/polyfills.bundle.js:7466:17</a>) at ZoneDelegate.prototype.invokeTask (<a class="postlink" href="http://localhost:4200/polyfills.bundle.js:7104:13">http://localhost:4200/polyfills.bundle.js:7104:13</a>) at onInvokeTask (<a class="postlink" href="http://localhost:4200/vendor.bundle.js:112538:21">http://localhost:4200/vendor.bundle.js:112538:21</a>) at ZoneDelegate.prototype.invokeTask (<a class="postlink" href="http://localhost:4200/polyfills.bundle.js:7104:13">http://localhost:4200/polyfills.bundle.js:7104:13</a>) at Zone.prototype.runTask (<a class="postlink" href="http://localhost:4200/polyfills.bundle.js:6873:21">http://localhost:4200/polyfills.bundle.js:6873:21</a>) at drainMicroTaskQueue (<a class="postlink" href="http://localhost:4200/polyfills.bundle.js:7299:25">http://localhost:4200/polyfills.bundle.js:7299:25</a>) at invoke (<a class="postlink" href="http://localhost:4200/polyfills.bundle.js:7172:25">http://localhost:4200/polyfills.bundle.js:7172:25</a>)</span>

And when I run the site on IIS and open in IE11 I get an error <span style="color:#FF0000">SCRIPT1002: Syntax error scripts.5cf6dcf0c970a3d32344.bundle.js (1,1254397) </span>and I cant log in.

Is there a way to fix this?


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @AdvaniaMobilePay,

    Which version of AspNet Zero do you use ? Can you check that you have "timeago": "^1.6.1" in your package.json ? As far as I remember there was a problem with previous version of timeago library.

  • User Avatar
    0
    advaniamobilepay created

    I'm running "timeago": "^1.5.4", do you think that is the problem?

  • User Avatar
    0
    advaniamobilepay created

    I updated the timeage package to 1.6.1 but I still get the same error.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @AdvaniaMobilePay,

    Can you click first link in the error message <a class="postlink" href="http://localhost:4200/vendor.bundle.js:9732:13">http://localhost:4200/vendor.bundle.js:9732:13</a> and see if there are any meaningfull codes which you can understand the cause of error ?

    If you cannot figure it out, please send your project to <a href="mailto:[email protected]">[email protected]</a> and let us check it. don't forget to remove node_modules folder :).