TypeScript: Script failed with error : 'JsErrorScriptException (0x30001)' during MSBuild

TypeScript Version: 2.0.0

I’m running MSBuild From VS2015 Update 3 with a large TypeScript Project.

The following is in csproj (tried 2.0 too):

<TypeScriptToolsVersion>1.9</TypeScriptToolsVersion>

tsconfig:

{
    "compilerOptions": {
        "noImplicitAny": false,
        "removeComments": false,
        "preserveConstEnums": true,
        "target": "es5",
        "sourceMap": false,
        "experimentalDecorators": true,
        "pretty": true,
        "noEmitOnError": false
    },
    "compileOnSave": true,
    "files": [
        // many files
    ]
}

Expected behavior:

Successful compilation. I can get it to compile on one machine, but not another.

Actual behavior:

[16:16:28]Unknown output : Script failed with error : 'JsErrorScriptException (0x30001)'. [R:\BuildAgent\work\Core.csproj]
[16:16:28]Unknown output : error : Incorrect function. [R:\BuildAgent\work\Core.csproj]

Some more info:

Error: Incorrect function.

   at ChakraHost.realpath (Unknown script code:1538:70)
   at ts.sys.realpath (Unknown script code:36513:62)
   at nodeModuleNameResolver (Unknown script code:36261:13)
   at resolveModuleName (Unknown script code:36058:17)
   at loader_1 (Unknown script code:36630:68)
   at loadWithLocalCache (Unknown script code:36576:17)
   at resolveModuleNamesWorker (Unknown script code:36631:81)
   at processImportedModules (Unknown script code:37357:17)
   at findSourceFile (Unknown script code:37281:17)
   at processSourceFile (Unknown script code:37201:22)

Full Visual Studio Info:

Microsoft Visual Studio Community 2015
Version 14.0.25420.01 Update 3
Microsoft .NET Framework
Version 4.6.01055

Installed Version: Community

Visual Basic 2015   00322-20000-00000-AA159
Microsoft Visual Basic 2015

Visual C# 2015   00322-20000-00000-AA159
Microsoft Visual C# 2015

Visual C++ 2015   00322-20000-00000-AA159
Microsoft Visual C++ 2015

Application Insights Tools for Visual Studio Package   1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11107.0
ASP.NET and Web Tools 2015.1 (Beta8)

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

NuGet Package Manager   3.4.4
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.50616.0
Microsoft SQL Server Data Tools

TypeScript   2.0.0.0
TypeScript tools for Visual Studio

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 21 (10 by maintainers)

Most upvoted comments

The fix should be published in the TypeScript 2.0.6.

this seems to be the same issue in https://github.com/Microsoft/TypeScript/issues/11110. we have traced this back to Chakra issue on Windows Server 2012, as well as other OS’s. we are following up on the issue and should have an update shortly.