Issue
After updating my Windows, I am now encountering an error while debugging Ionic App on Visual Studio Code. Every time it passes the statement console.log, it prints the error "Unimplemented console API: undefined". Do you have any ideas on how to fix it?
Solution
There is a bug in vscode-chrome-debug as pointed out by Jimmy Thomson on there Github Issue page!
Here is the Dirty fix by Jimmy Thomson:
- Go to your vscode extension directory, either C:\Users\.vscode\extensions\ or ~/.vscode/extensions, then go to vsmobile.cordova-tools-1.2.3/node_modules/vscode-chrome-debug-core/out/src/chrome/ and open up consoleHelper.js.
- Look around line 37 for outputText = 'Unimplemented console API: ' + m.type;
- change that to outputText = 'Unimplemented console API: ' + JSON.stringify(m);
Answered By - Bhavesh Gohel
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.