Wednesday, January 17, 2018

Visual Studio copy paste issue

Whenever you copy Javascript code, from an external website/word processor in to Visual Studio Code, it will paste fine, and format fine. But when you run any code that imports this copied code module into your current module, you will get “module not found” or “<object>.<function> is not a function” errors in your console.

When you copy the code you want to copy onto notepad, and then copy the notepad contents into your Visual Studio editor file, then this error will go away.

No comments:

Post a Comment