Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

312
Vistas
VSCode Randomly popping this error up everywhere, not resolving until I reload the workspace

Everywhere something expects brackets, and a few other places, I have been finding this error:

Parse error on line 1:
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', "[", got ':(sometimes this : is different here)'

I have to reload my window to fix this every time, and I have no idea where this bug comes from. I've found it everywhere:

/*CSS*/
:root{
~ /* This is where the error appears, where the tilde is.*/
    --bg-color:white;
    --popup-bg:whitesmoke;
}
//Javascript
const interface = { ...
~ //Right here

It also appears in JSON, only when I edit it though. I first noticed it in my TSConfig.json files, and then it started popping up (almost)every time there's brackets.

Please help!

EDIT: This is my workspace:

build/index.js:

var test = {
    error: false,
    name: "Someone",
    age: 10,
    appearance: {
        face: "red"
    }
};

./index.ts:

var test = {
    error:false,
    name:"Someone",
    age:10,
    appearance:{
        face:"red"
    }
}

./package.json:

{
  "name": "apijs",
  "version": "1.0.0",
  "description": "",
  "main": "build/index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}

./tsconfig.json:

{
    "compilerOptions": {
        "watch": true,
        "outDir": "build/"
    }
    ~
}
~

Steps to reproduce:

  1. New VSCode Workspace
  2. Create index.ts as follows
  3. Create tsconfig.json as follows
  4. run tsc
  5. Modify tsconfig.json.

After disabling all extensions the bug seems to have disappeared completely.

I individually tested ESLint and JSON extensions, with no luck. The bug is probably in one of my extensions.

Another edit: After re-enabling my extensions I removed the test typescript code and immediately got 2 errors in the same place at the beginning of my file.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda