vscode imports import console = require(“console”); automatically

Disclaimer: this shouldn’t be considered “the solution” but it’s the simplest/fastest.

This answer is assuming you’re using VSCode. Other IDEs should be similar.

  1. Start typing console
  2. Click enter or type ., allowing IntelliSense to add import console = require("console");
  3. Ctrl+click (or F12, or Cmd+click on macOS) on require("console")
  4. Comment out this code:
declare module "console" {
    export = console;
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)