script error SCRIPT1002: in ie while running vuejs app - vuejs2

Error in console:
SCRIPT1002: Syntax error
Line in debugger (app.js):
eval("\n\nconst Apply = Function.prototype.apply;…{ - long string - }…})
How can I solve this issue? It works with other browsers correctly. It is not converting babel.

Related

ERROR #wdio/runner: Error: Unable to load spec files quite likely because they rely on `browser` object that is not fully initialised

After running npm install getting the following error: ERROR #wdio/runner: Error: Unable to load spec files quite likely because they rely on browser object that is not fully initialised
The code was running fine, only after npm install getting this error.
I after long trouble shooting it turned out to be one of my script had one line not correctly commented out, instead of // I had /. Now all is working.

SCRIPT1002: Syntax error - IE11, problem with ngx-cookie-service with angular 8

I have a problem with IE11 when I inject 'CookieService' on the 'providers' of 'app.module.ts'.
I got this message with freezing page on IE11:
SCRIPT1002: Syntax error
vendor.js (152116,1)
It works with all other navigators, I also tried 'ngx-cookie' and I got the same error.
Does anyone have a solution for this?

During Angular 5 to Angular 7 upgrade I am getting an error

During update I am getting the below error. But this error vanishes when I compile with aot method.
Uncaught Error: Can't resolve all parameters for ApplicationModule
Getting error while executing the below line in main.ts
bootstrap();
After more surfing I added the following line which solved the issue. Not sure what magic it did.
import 'core-js/es7/reflect';

VueJS Compiles Production with Syntax Error

I'm using vue-cli (v2). The dev build works fine, but when I compile to production (npm run build), Chrome is throwing a syntax error in the vendor js file.
I don't even know where to start with debugging this. Help!
Error:
Uncaught SyntaxError: Unexpected end of input (/static/js/vendor.bcf4af616d173011918b.js)
Update: It looks like the JS file is being truncated for some reason. How to fix this?

Error: window.sinon is undefined

I am using casperjs which in turn runs on slimerjs along with phantomxhr. I am not sure of the support of phantomxhr with slimerjs+capserjs but I am getting 'window.sinon is undefined' error while running the code (Error at Phantomxhr.js line 124). Everything is working fine when running casperjs with phantomjs.
Looks like there is an problem while injecting the sinon js script as given phantomxhr (line 24). So what I did is, add a line in the test file 'phantom.injectJs('Absolute path to sinon.js file'). This doesn't even open the browser. what I am doing wrong. Any pointer would help.