Desactivar el mensaje de error" Servicio de idioma deshabilitado " en VS2017


Estamos recibiendo el siguiente mensaje de "Error" en nuestra aplicación web MVC en Visual studio 2017 Enterprise.

El servicio de idiomas está deshabilitado para el proyecto " C:\Work\Blackhawk Platform\Platform-DEV-Branch \ BlackhawkViewer \ BlackhawkViewer.csproj" porque incluía un gran número de .archivos js. Considere excluir archivos usando la sección ' exclude 'de un' tsconfig.archivo de Json.

He intentado desactivar el servicio de idiomas en las opciones, pero esto no apague el mensaje:

introduzca la descripción de la imagen aquí

Esta es una aplicación web bastante grande. ¿Hay alguna forma de desactivar este mensaje sin deshabilitar ningún archivo en tsconfig?archivo json como sugiere?

Author: loan.burger, 2017-03-24

8 answers

Para resolver este problema haga lo siguiente:

  • Crea un archivo en el directorio raíz de tu proyecto y llámalo tsconfig.json
  • Añadir esto:
{
  "compilerOptions": {
    "allowJs": true, 
    "noEmit": true, 
    "module": "system",
    "noImplicitAny": true,
    "removeComments": true,
    "preserveConstEnums": true,
    "sourceMap": true
  },
  "include": [
    "scripts"
  ],
  "exclude": [

  ],
  "typeAcquisition": {
    "enable": true 
  }
}

Por favor, eche un vistazo a los siguientes dos enlaces para tsconfig.explicación json, porque es posible que aún tenga que cambiarlo de acuerdo con su configuración. Esta es la única manera que funcionó para mí. Espero que le help.
https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
https://developercommunity.visualstudio.com/content/problem/8148/javascript-intellisense-not-working.html

 35
Author: Moustafa Mansour,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-03-28 14:31:19

Esto me ayudó. Puedes intentarlo.

 Go to Tools -> Options -> Text Editor -> JavaScript/TypeScript -> Language Service -> General

Y desmarque la casilla: "Habilitar el nuevo servicio de lenguaje JavaScript.

 18
Author: oneNiceFriend,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-12-19 10:40:32

He encontrado una solución para este problema.

Restablezco mis datos de usuario usando:

Devenv.exe / resetuserdata

Desde que hice esto, la configuración de JavaScript parece haber persistido y ya no recibo el error de servicio de idioma anterior.

TOMA NOTA: Esto restablecerá todos tus datos de usuario y personalizaciones.

 8
Author: loan.burger,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-03-31 00:52:53

Tuve el mismo problema después de migrar el proyecto Ionic 1 de VS2015 a VS2017, primero ejecuté git clean-fxd como se sugirió anteriormente y agregué este contenido a tsconfig.json en mi proyecto iónico.

{
"compilerOptions": {
    "noImplicitAny": false,
    "noEmitOnError": true,
    "removeComments": false,
    "sourceMap": true,
    "target": "es5"
},
"exclude": [
    "node_modules",
    "www",
    "bower_components"
    ]
}
 1
Author: Fabio Campinho,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-05-11 17:38:03

Resolví este problema con la siguiente solución:

Cuando tiene un archivo JavaScript incluido en el proyecto.csproj archivo pero no está en la carpeta del proyecto, se produjo este error.

Por ejemplo tengo un.archivo csproj como a continuación:

 <ItemGroup>
     <Content Include="Scripts\Test.js" />
 </ItemGroup>

La Prueba.js está incluido en el .archivo csproj, pero no está en la carpeta Scripts:

Suprímase la línea <Content Include="Scripts\Test.js" /> del .csproj archivo y reconstruir su proyecto

 1
Author: Iman Bahrampour,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-08-20 01:51:50

Solución que funcionó para mí:

  1. Ir a C:\Program Archivos (x86) \ Microsoft Visual Studio 14.0 \ Common7 \ IDE>.
  2. Abra el símbolo del sistema como administrador en la carpeta actual
  3. Corrió devenv / Setup
  4. Ran devenv / ResetSkipPkgs
 1
Author: Pavlo Neyman,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-10-13 11:56:00

En mi caso solo deshabilito el soporte de TypeScript en Visual Studio:

Herramientas > Extensiones y actualizaciones > TypeScript para Microsoft Visual Studio > Desactivar

Después de eso, simplemente reinicie Visual Studio y estará listo.

Espero que esto ayude,

 1
Author: Asif Raza,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-08-23 15:02:00

Para mí es ayudar a la siguiente solución. He creado un tsconfig.archivo json en la raíz de mi proyecto con la opción" disableSizeLimit":" true".

Entonces, mi tsconfig.el archivo json es:

{
  "compilerOptions": {
  "disableSizeLimit": "true"
},
"exclude": []
}
 0
Author: Andrey R,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-11-29 10:30:33