Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Build #1

Closed
psaussure opened this issue Dec 21, 2016 · 12 comments
Closed

Error on Build #1

psaussure opened this issue Dec 21, 2016 · 12 comments

Comments

@psaussure
Copy link
Contributor

Error on build

Just after cloning the project, trying to run it via F5 on VS2015 throw errors

Steps

  • Install VS2015, Core 1.0.1, last Node.js and NPM versions
  • Open Angular2AspNetCoreStarter Solution in VS2015
  • Packages are restored / Checked NPM packages are installed properly
  • on F5, error on build

Output

1>------ Build started: Project: Angular2AspNetCoreStarter, Configuration: Debug Any CPU ------ 1>C:\Angular2AspNetCoreStarter\e2e\base.po.ts(1,10): error TS2305: Build:Module ''protractor'' has no exported member 'browser'. 1>C:\Angular2AspNetCoreStarter\e2e\base.po.ts(1,19): error TS2305: Build:Module ''protractor'' has no exported member 'element'. 1>C:\Angular2AspNetCoreStarter\e2e\base.po.ts(1,28): error TS2305: Build:Module ''protractor'' has no exported member 'by'. 1>C:\Angular2AspNetCoreStarter\e2e\base.po.ts(1,32): error TS2305: Build:Module ''protractor'' has no exported member 'ProtractorBrowser'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\jasmine\index.d.ts(74,9): error TS2375: Build:Duplicate number index signature. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\jasmine\index.d.ts(129,9): error TS2374: Build:Duplicate string index signature. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(70,5): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'main' must be of type 'any', but here has type 'NodeModule'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(81,5): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'parent' must be of type 'any', but here has type 'NodeModule'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(82,5): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'children' must be of type 'any[]', but here has type 'NodeModule[]'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(102,6): error TS2300: Build:Duplicate identifier 'BufferEncoding'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(553,26): error TS2300: Build:Duplicate identifier 'Buffer'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(553,50): error TS2300: Build:Duplicate identifier 'SlowBuffer'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(597,5): error TS2309: Build:An export assignment cannot be used in a module with other exported elements. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(742,18): error TS2300: Build:Duplicate identifier 'Agent'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(797,9): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'addressType' must be of type 'string', but here has type 'number | "udp4" | "udp6"'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(800,18): error TS2300: Build:Duplicate identifier 'Worker'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(1281,9): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'SNICallback' must be of type '(servername: string) => any', but here has type '(servername: string, cb: (err: Error, ctx: SecureContext) => any) => any'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(1481,17): error TS2300: Build:Duplicate identifier 'CompleterResult'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(1518,18): error TS2300: Build:Duplicate identifier 'Script'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(2770,16): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'StringDecoder' must be of type 'new (encoding: string) => NodeStringDecoder', but here has type 'new (encoding?: string) => NodeStringDecoder'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(2821,18): error TS2300: Build:Duplicate identifier 'TLSSocket'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3018,9): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'pfx' must be of type 'any', but here has type 'string | Buffer[]'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3019,9): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'key' must be of type 'any', but here has type 'string | any[] | string[] | Buffer'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3021,9): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'cert' must be of type 'any', but here has type 'string | string[] | Buffer | Buffer[]'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3022,9): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'ca' must be of type 'any', but here has type 'string | string[] | Buffer | Buffer[]'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3023,9): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'crl' must be of type 'any', but here has type 'string | string[]'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3025,9): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'honorCipherOrder' must be of type 'any', but here has type 'boolean'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3028,9): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'NPNProtocols' must be of type 'any', but here has type 'string[] | Buffer'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3029,9): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'SNICallback' must be of type '(servername: string) => any', but here has type '(servername: string, cb: (err: Error, ctx: SecureContext) => any) => any'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3045,9): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'key' must be of type 'string | Buffer', but here has type 'string | string[] | Buffer | Buffer[]'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3047,9): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'cert' must be of type 'string | Buffer', but here has type 'string | string[] | Buffer | Buffer[]'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3048,9): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'ca' must be of type '(string | Buffer)[]', but here has type 'string | Buffer | (string | Buffer)[]'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3287,9): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'padding' must be of type 'any', but here has type 'number'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3292,9): error TS2403: Build:Subsequent variable declarations must have the same type. Variable 'padding' must be of type 'any', but here has type 'number'. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3550,5): error TS2309: Build:An export assignment cannot be used in a module with other exported elements. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3633,5): error TS2300: Build:Duplicate identifier 'export='. 1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3655,18): error TS2300: Build:Duplicate identifier 'Domain'. 1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\browser.d.ts(2,76): error TS2305: Build:Module ''selenium-webdriver'' has no exported member 'Options'. 1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\browser.d.ts(2,116): error TS2305: Build:Module ''selenium-webdriver'' has no exported member 'TargetLocator'. 1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\locators.d.ts(4,39): error TS2304: Build:Cannot find name 'By'. 1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\locators.d.ts(5,27): error TS2304: Build:Cannot find name 'By'. 1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\locators.d.ts(6,25): error TS2304: Build:Cannot find name 'By'. 1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\locators.d.ts(7,37): error TS2304: Build:Cannot find name 'By'. 1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\locators.d.ts(8,25): error TS2304: Build:Cannot find name 'By'. 1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\locators.d.ts(9,29): error TS2304: Build:Cannot find name 'By'. 1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\locators.d.ts(10,47): error TS2304: Build:Cannot find name 'By'. 1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\locators.d.ts(11,35): error TS2304: Build:Cannot find name 'By'. 1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\locators.d.ts(12,31): error TS2304: Build:Cannot find name 'By'. 1>C:\Angular2AspNetCoreStarter\src\app\app.service.ts(2,26): error TS2307: Build:Cannot find module 'angular2-hmr'. 1>C:\Angular2AspNetCoreStarter\src\main.browser.ts(1,10): error TS2305: Build:Module '"C:/Angular2AspNetCoreStarter/node_modules/@angular/platform-browser-dynamic/index"' has no exported member 'browserDynamicPlatform'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(78,6): error TS2300: Build:Duplicate identifier 'BufferEncoding'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(503,9): error TS2502: Build:'BuffType' is referenced directly or indirectly in its own type annotation. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(504,9): error TS2502: Build:'SlowBuffType' is referenced directly or indirectly in its own type annotation. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(505,26): error TS2300: Build:Duplicate identifier 'Buffer'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(505,50): error TS2300: Build:Duplicate identifier 'SlowBuffer'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(567,22): error TS2320: Build:Interface 'Server' cannot simultaneously extend types 'EventEmitter' and 'Server'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(567,22): error TS2320: Build:Interface 'Server' cannot simultaneously extend types 'EventEmitter' and 'Server'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(567,22): error TS2320: Build:Interface 'Server' cannot simultaneously extend types 'EventEmitter' and 'Server'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(567,22): error TS2320: Build:Interface 'Server' cannot simultaneously extend types 'EventEmitter' and 'Server'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(567,22): error TS2320: Build:Interface 'Server' cannot simultaneously extend types 'EventEmitter' and 'Server'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(567,22): error TS2320: Build:Interface 'Server' cannot simultaneously extend types 'EventEmitter' and 'Server'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(567,22): error TS2320: Build:Interface 'Server' cannot simultaneously extend types 'EventEmitter' and 'Server'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(578,22): error TS2320: Build:Interface 'ServerResponse' cannot simultaneously extend types 'EventEmitter' and 'Writable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(578,22): error TS2320: Build:Interface 'ServerResponse' cannot simultaneously extend types 'EventEmitter' and 'Writable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(578,22): error TS2320: Build:Interface 'ServerResponse' cannot simultaneously extend types 'EventEmitter' and 'Writable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(578,22): error TS2320: Build:Interface 'ServerResponse' cannot simultaneously extend types 'EventEmitter' and 'Writable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(578,22): error TS2320: Build:Interface 'ServerResponse' cannot simultaneously extend types 'EventEmitter' and 'Writable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(578,22): error TS2320: Build:Interface 'ServerResponse' cannot simultaneously extend types 'EventEmitter' and 'Writable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(578,22): error TS2320: Build:Interface 'ServerResponse' cannot simultaneously extend types 'EventEmitter' and 'Writable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(606,22): error TS2320: Build:Interface 'ClientRequest' cannot simultaneously extend types 'EventEmitter' and 'Writable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(606,22): error TS2320: Build:Interface 'ClientRequest' cannot simultaneously extend types 'EventEmitter' and 'Writable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(606,22): error TS2320: Build:Interface 'ClientRequest' cannot simultaneously extend types 'EventEmitter' and 'Writable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(606,22): error TS2320: Build:Interface 'ClientRequest' cannot simultaneously extend types 'EventEmitter' and 'Writable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(606,22): error TS2320: Build:Interface 'ClientRequest' cannot simultaneously extend types 'EventEmitter' and 'Writable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(606,22): error TS2320: Build:Interface 'ClientRequest' cannot simultaneously extend types 'EventEmitter' and 'Writable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(606,22): error TS2320: Build:Interface 'ClientRequest' cannot simultaneously extend types 'EventEmitter' and 'Writable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(632,22): error TS2320: Build:Interface 'IncomingMessage' cannot simultaneously extend types 'EventEmitter' and 'Readable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(632,22): error TS2320: Build:Interface 'IncomingMessage' cannot simultaneously extend types 'EventEmitter' and 'Readable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(632,22): error TS2320: Build:Interface 'IncomingMessage' cannot simultaneously extend types 'EventEmitter' and 'Readable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(632,22): error TS2320: Build:Interface 'IncomingMessage' cannot simultaneously extend types 'EventEmitter' and 'Readable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(632,22): error TS2320: Build:Interface 'IncomingMessage' cannot simultaneously extend types 'EventEmitter' and 'Readable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(632,22): error TS2320: Build:Interface 'IncomingMessage' cannot simultaneously extend types 'EventEmitter' and 'Readable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(632,22): error TS2320: Build:Interface 'IncomingMessage' cannot simultaneously extend types 'EventEmitter' and 'Readable'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(682,18): error TS2300: Build:Duplicate identifier 'Agent'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(727,18): error TS2300: Build:Duplicate identifier 'Worker'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(980,22): error TS2300: Build:Duplicate identifier 'CompleterResult'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(1020,18): error TS2300: Build:Duplicate identifier 'Script'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(1298,22): error TS2320: Build:Interface 'Server' cannot simultaneously extend types 'Socket' and 'EventEmitter'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(1861,18): error TS2300: Build:Duplicate identifier 'TLSSocket'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(2159,18): error TS2420: Build:Class 'Readable' incorrectly implements interface 'ReadableStream'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(2196,18): error TS2420: Build:Class 'Duplex' incorrectly implements interface 'ReadWriteStream'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(2210,18): error TS2420: Build:Class 'Transform' incorrectly implements interface 'ReadWriteStream'. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(2301,5): error TS2300: Build:Duplicate identifier 'export='. 1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(2323,18): error TS2300: Build:Duplicate identifier 'Domain'. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

@wickdninja
Copy link
Owner

Thanks for opening an issue. However, I'm having some issues reproducing the problem. Does it build if you use the command prompt and execute npm run build?
If the cmd build fails here are a few things to check:

  • Positive node_modules installed correctly ? (execute npm install to be certain)
  • Do you have the dotnet cli and angular cli installed ?
  • can you build the client / server separately? (server: dotnet build client: ng build) ?

I will continue to look into this issue later today.

@wickdninja
Copy link
Owner

Something that slipped my mind until now, but I'm using extension https://github.com/madskristensen/NpmTaskRunner

I will disable this extension and see if I can reproduce.

@psaussure
Copy link
Contributor Author

Side conversation: do you intend to update package.json packages versions? Angular newer versions introduce some interesting features/fixes.

Ok ran through several testing. Easy answers first.

  • Dev Environment: Windows 7 and Windows 10 (tested on both), VS2015 last version, VS Code last version. Node 7.2.1. Npm 4.0.5. .NET Core 1.0.1
  • Positive node_modules installed correctly ? (execute npm install to be certain) yes
  • Do you have the dotnet cli and angular cli installed ?yes
  • can you build the client / server separately? (server: dotnet build client: ng build) ? I only tested in VS2015 by clicking on debug: error as described in the first post

More steps:

  • Open it on VS Code: at opening, it updates the C# dependencies and then restore packages. Output:
Welcome to .NET Core!
---------------------
Learn more about .NET Core @ https://aka.ms/dotnet-docs. Use dotnet --help to see available commands or go to https://aka.ms/dotnet-cli-docs.
Telemetry
--------------
The .NET Core tools collect usage data in order to improve your experience. The data is anonymous and does not include commandline arguments. The data is collected by Microsoft and shared with the community.
You can opt out of telemetry by setting a DOTNET_CLI_TELEMETRY_OPTOUT environment variable to 1 using your favorite shell.
You can read more about .NET Core tools telemetry @ https://aka.ms/dotnet-cli-telemetry.
Configuring...
-------------------
A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once.
Decompressing 3361 ms
Expanding 21521 ms
log  : Restoring packages for c:\Angular2AspNetCoreStarter\project.json...
log  : Installing Microsoft.Extensions.FileProviders.Embedded 1.0.0.
log  : Installing Microsoft.AspNetCore.Mvc.ApiExplorer 1.0.0.
log  : Installing Swashbuckle.SwaggerUi 6.0.0-beta902.
log  : Installing Microsoft.AspNetCore.Authentication.Cookies 1.0.0.
log  : Installing Swashbuckle.SwaggerGen 6.0.0-beta902.
log  : Installing Swashbuckle.Swagger 6.0.0-beta902.
log  : Installing Microsoft.AspNetCore.Cryptography.KeyDerivation 1.0.0.
log  : Installing Microsoft.AspNetCore.Identity 1.0.0.
log  : Installing Swashbuckle 6.0.0-beta902.
log  : Installing Microsoft.AspNetCore.Authentication 1.0.0.
log  : Installing runtime.win81-x64.Microsoft.NETCore.Windows.ApiSets 1.0.1.
log  : Installing runtime.win7-x64.Microsoft.NETCore.Windows.ApiSets 1.0.1.
log  : Installing runtime.any.System.Reflection.Extensions 4.0.1.
log  : Installing runtime.win7.System.Private.Uri 4.0.1.
log  : Installing runtime.win7-x64.runtime.native.System.IO.Compression 4.0.1.
log  : Installing runtime.win7-x64.Microsoft.NETCore.DotNetHost 1.0.1.
log  : Installing runtime.win.Microsoft.Win32.Primitives 4.0.1.
log  : Installing runtime.any.System.Collections 4.0.11.
log  : Installing runtime.unix.System.Diagnostics.Debug 4.0.11.
log  : Installing runtime.win7-x64.Microsoft.NETCore.Jit 1.0.2.
log  : Installing runtime.any.System.Globalization 4.0.11.
log  : Installing runtime.win7-x64.Microsoft.NETCore.DotNetHostResolver 1.0.1.
log  : Installing runtime.win.System.Net.Sockets 4.1.0.
log  : Installing runtime.any.System.IO 4.1.0.
log  : Installing runtime.win.System.Console 4.0.0.
log  : Installing runtime.unix.System.Net.Primitives 4.0.11.
log  : Installing runtime.win.System.IO.FileSystem 4.0.1.
log  : Installing runtime.unix.System.Runtime.Extensions 4.1.0.
log  : Installing runtime.win.System.Runtime.Extensions 4.1.0.
log  : Installing runtime.any.System.Runtime.InteropServices 4.1.0.
log  : Installing runtime.win.System.Net.Primitives 4.0.11.
log  : Installing runtime.any.System.Text.Encoding 4.0.11.
log  : Installing runtime.any.System.Threading.Tasks 4.0.11.
log  : Installing runtime.win.System.Diagnostics.Debug 4.0.11.
log  : Installing runtime.any.System.Threading.Timer 4.0.1.
log  : Installing runtime.win7-x64.Microsoft.NETCore.Runtime.CoreCLR 1.0.2.
log  : Installing runtime.unix.System.IO.FileSystem 4.0.1.
log  : Installing runtime.unix.System.Console 4.0.0.
log  : Installing runtime.unix.System.Net.Sockets 4.1.0.
log  : Installing runtime.osx.10.10-x64.Microsoft.NETCore.DotNetHostPolicy 1.0.1.
log  : Installing runtime.osx.10.10-x64.Microsoft.NETCore.Runtime.CoreCLR 1.0.2.
log  : Installing runtime.any.System.Reflection 4.1.0.
log  : Installing runtime.win7-x64.Microsoft.NETCore.DotNetHostPolicy 1.0.1.
log  : Installing runtime.any.System.Runtime 4.1.0.
log  : Installing runtime.any.System.Resources.ResourceManager 4.0.1.
log  : Installing runtime.any.System.Diagnostics.Tracing 4.1.0.
log  : Installing runtime.any.System.Reflection.Primitives 4.0.1.
log  : Installing runtime.any.System.Text.Encoding.Extensions 4.0.11.
log  : Installing runtime.any.System.Runtime.Handles 4.0.1.
log  : Installing runtime.osx.10.10-x64.runtime.native.System 1.0.1.
log  : Installing runtime.unix.Microsoft.Win32.Primitives 4.0.1.
log  : Installing System.Private.Uri 4.0.1.
log  : Installing runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography 1.0.1.
log  : Installing runtime.osx.10.10-x64.runtime.native.System.Net.Security 1.0.1.
log  : Installing runtime.any.System.Globalization.Calendars 4.0.1.
log  : Installing runtime.any.System.Diagnostics.Tools 4.0.1.
log  : Installing runtime.osx.10.10-x64.runtime.native.System.Net.Http 1.0.1.
log  : Installing runtime.ubuntu.14.04-x64.Microsoft.NETCore.DotNetHost 1.0.1.
log  : Installing runtime.osx.10.10-x64.Microsoft.NETCore.DotNetHostResolver 1.0.1.
log  : Installing runtime.osx.10.10-x64.Microsoft.NETCore.Jit 1.0.2.
log  : Installing runtime.unix.System.Private.Uri 4.0.1.
log  : Installing runtime.osx.10.10-x64.runtime.native.System.IO.Compression 1.0.1.
log  : Installing runtime.osx.10.10-x64.Microsoft.NETCore.DotNetHost 1.0.1.
log  : Installing runtime.ubuntu.14.04-x64.Microsoft.NETCore.DotNetHostPolicy 1.0.1.
log  : Installing runtime.ubuntu.14.04-x64.Microsoft.NETCore.Runtime.CoreCLR 1.0.2.
log  : Installing runtime.ubuntu.14.04-x64.runtime.native.System 1.0.1.
log  : Installing runtime.ubuntu.14.04-x64.runtime.native.System.Net.Security 1.0.1.
log  : Installing runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography 1.0.1.
log  : Installing runtime.ubuntu.14.04-x64.runtime.native.System.Net.Http 1.0.1.
log  : Installing runtime.ubuntu.14.04-x64.Microsoft.NETCore.DotNetHostResolver 1.0.1.
log  : Installing runtime.ubuntu.14.04-x64.Microsoft.NETCore.Jit 1.0.2.
log  : Installing runtime.ubuntu.14.04-x64.runtime.native.System.IO.Compression 1.0.1.
log  : Restoring packages for tool 'BundlerMinifier.Core' in c:\Angular2AspNetCoreStarter\project.json...
log  : Restoring packages for tool 'Microsoft.AspNetCore.Razor.Tools' in c:\Angular2AspNetCoreStarter\project.json...
log  : Restoring packages for tool 'Microsoft.AspNetCore.Server.IISIntegration.Tools' in c:\Angular2AspNetCoreStarter\project.json...
log  : Writing lock file to disk. Path: c:\Angular2AspNetCoreStarter\project.lock.json
log  : c:\Angular2AspNetCoreStarter\project.json
log  : Restore completed in 81538ms.
Done: 0.
  • In the VS Code Console: npm install: Everything OK
  • In the VS Code Console: dotnet build:
Project Angular2AspNetCoreStarter (.NETCoreApp,Version=v1.0) will be compiled because project is not safe for incremental compilation. Use --build-profile flag for more information.
Compiling Angular2AspNetCoreStarter for .NETCoreApp,Version=v1.0
Bundling with configuration from C:\Angular2AspNetCoreStarter\bundleconfig.json
No configurations matched

Compilation succeeded.
    0 Warning(s)
    0 Error(s)

Time elapsed 00:00:07.7976691
 (The compilation time can be improved. Run "dotnet build --build-profile" for more information)
  • In VS Code Console: npm run build: Everything OK
allied-admin@1.0.0 prebuild C:\Angular2AspNetCoreStarter
> npm run clean


> allied-admin@1.0.0 clean C:\Angular2AspNetCoreStarter
> rimraf -- wwwroot


> allied-admin@1.0.0 postclean C:\Angular2AspNetCoreStarter
> ng build

8545ms building modules
58ms sealing
2ms optimizing
1ms basic module optimization
111ms module optimization
7ms advanced module optimization
8ms basic chunk optimization
1ms chunk optimization
0ms advanced chunk optimization
1ms module and chunk tree optimization
81ms module reviving
10ms module order optimization
5ms module id optimization
5ms chunk reviving
0ms chunk order optimization
28ms chunk id optimization
54ms hashing
1ms module assets processing
166ms chunk assets processing
3ms additional chunk assets processing
1ms recording
0ms additional asset processing
1649ms chunk asset optimization
2054ms asset optimization
66ms emitting
Hash: 3718f33635d4a30adcfc
Version: webpack 2.1.0-beta.25
Time: 12874ms
                            Asset       Size  Chunks             Chunk Names
    assets/icon/browserconfig.xml  222 bytes          [emitted]
                       0.chunk.js    40.3 kB    0, 3  [emitted]
                 styles.bundle.js    10.2 kB    2, 3  [emitted]  styles
                        inline.js    5.53 kB       3  [emitted]  inline
                            0.map      39 kB    0, 3  [emitted]
                         main.map    3.59 MB    1, 3  [emitted]  main
                       styles.map      14 kB    2, 3  [emitted]  styles
                       inline.map    5.59 kB       3  [emitted]  inline
                       index.html  975 bytes          [emitted]
                assets/.npmignore    0 bytes          [emitted]
                assets/humans.txt  251 bytes          [emitted]
 assets/icon/apple-touch-icon.png     3.1 kB          [emitted]
                   main.bundle.js    3.45 MB    1, 3  [emitted]  main
    assets/icon/favicon-16x16.png  983 bytes          [emitted]
    assets/icon/favicon-32x32.png     1.6 kB          [emitted]
          assets/icon/favicon.ico    15.1 kB          [emitted]
        assets/icon/manifest.json  110 bytes          [emitted]
   assets/icon/mstile-150x150.png    2.39 kB          [emitted]
assets/icon/safari-pinned-tab.svg    1.18 kB          [emitted]
           assets/img/angular.svg  931 bytes          [emitted]
             assets/img/chart.gif     340 kB          [emitted]
              assets/img/news.png    12.9 kB          [emitted]
             assets/manifest.json  769 bytes          [emitted]
                assets/robots.txt   31 bytes          [emitted]
chunk    {0} 0.chunk.js, 0.map 33 kB {1} [rendered]
chunk    {1} main.bundle.js, main.map (main) 2.83 MB {2} [initial] [rendered]
chunk    {2} styles.bundle.js, styles.map (styles) 9.96 kB {3} [initial] [rendered]
chunk    {3} inline.js, inline.map (inline) 0 bytes [entry] [rendered]
Child html-webpack-plugin for "index.html":
         Asset     Size  Chunks       Chunk Names
    index.html  3.33 kB       0
    chunk    {0} index.html 868 bytes [entry] [rendered]

> allied-admin@1.0.0 build C:\Angular2AspNetCoreStarter
> dotnet build

Project Angular2AspNetCoreStarter (.NETCoreApp,Version=v1.0) will be compiled because project is not safe for incrementa
l compilation. Use --build-profile flag for more information.
Compiling Angular2AspNetCoreStarter for .NETCoreApp,Version=v1.0
Bundling with configuration from C:\Angular2AspNetCoreStarter\bundleconfig.json
No configurations matched

Compilation succeeded.
    0 Warning(s)
    0 Error(s)

Time elapsed 00:00:06.4109102
 (The compilation time can be improved. Run "dotnet build --build-profile" for more information)
  • After this, on VS Code, debug tab then run with profile ".Net Core Launch (web)": NO-OK
    It first goes through the entire build process, both dotnet and npm. Then:
--------------------------------------------------------------------------------
You may only use the C# Extension for Visual Studio Code with Visual Studio
Code, Visual Studio or Xamarin Studio software to help you develop and test your
applications.
--------------------------------------------------------------------------------
A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'c:\Angular2AspNetCoreStarter\bin\Debug\netcoreapp1.0'.

The program 'c:\Angular2AspNetCoreStarter\bin\Debug\netcoreapp1.0\Angular2AspNetCoreStarter.dll' has exited with code -2147450749 (0x80008083).

After build on command line, tried also to RUN in VS2015: (IIS Express I guess):

1>------ Begin generate : Project : Angular2AspNetCoreStarter, Configuration : Debug Any CPU ------
1>C:\Angular2AspNetCoreStarter\e2e\base.po.ts(1,10): error TS2305: Build :Module ''protractor'' has no exported member 'browser'.
1>C:\Angular2AspNetCoreStarter\e2e\base.po.ts(1,19): error TS2305: Build :Module ''protractor'' has no exported member 'element'.
1>C:\Angular2AspNetCoreStarter\e2e\base.po.ts(1,28): error TS2305: Build :Module ''protractor'' has no exported member 'by'.
1>C:\Angular2AspNetCoreStarter\e2e\base.po.ts(1,32): error TS2305: Build :Module ''protractor'' has no exported member 'ProtractorBrowser'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\jasmine\index.d.ts(74,9): error TS2375: Build :Duplicate number index signature.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\jasmine\index.d.ts(129,9): error TS2374: Build :Duplicate string index signature.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(70,5): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'main' must be of type 'any', but here has type 'NodeModule'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(81,5): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'parent' must be of type 'any', but here has type 'NodeModule'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(82,5): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'children' must be of type 'any[]', but here has type 'NodeModule[]'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(102,6): error TS2300: Build :Duplicate identifier 'BufferEncoding'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(553,26): error TS2300: Build :Duplicate identifier 'Buffer'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(553,50): error TS2300: Build :Duplicate identifier 'SlowBuffer'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(597,5): error TS2309: Build :An export assignment cannot be used in a module with other exported elements.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(742,18): error TS2300: Build :Duplicate identifier 'Agent'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(797,9): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'addressType' must be of type 'string', but here has type 'number | "udp4" | "udp6"'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(800,18): error TS2300: Build :Duplicate identifier 'Worker'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(1281,9): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'SNICallback' must be of type '(servername: string) => any', but here has type '(servername: string, cb: (err: Error, ctx: SecureContext) => any) => any'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(1481,17): error TS2300: Build :Duplicate identifier 'CompleterResult'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(1518,18): error TS2300: Build :Duplicate identifier 'Script'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(2770,16): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'StringDecoder' must be of type 'new (encoding: string) => NodeStringDecoder', but here has type 'new (encoding?: string) => NodeStringDecoder'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(2821,18): error TS2300: Build :Duplicate identifier 'TLSSocket'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3018,9): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'pfx' must be of type 'any', but here has type 'string | Buffer[]'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3019,9): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'key' must be of type 'any', but here has type 'string | any[] | string[] | Buffer'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3021,9): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'cert' must be of type 'any', but here has type 'string | string[] | Buffer | Buffer[]'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3022,9): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'ca' must be of type 'any', but here has type 'string | string[] | Buffer | Buffer[]'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3023,9): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'crl' must be of type 'any', but here has type 'string | string[]'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3025,9): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'honorCipherOrder' must be of type 'any', but here has type 'boolean'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3028,9): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'NPNProtocols' must be of type 'any', but here has type 'string[] | Buffer'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3029,9): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'SNICallback' must be of type '(servername: string) => any', but here has type '(servername: string, cb: (err: Error, ctx: SecureContext) => any) => any'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3045,9): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'key' must be of type 'string | Buffer', but here has type 'string | string[] | Buffer | Buffer[]'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3047,9): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'cert' must be of type 'string | Buffer', but here has type 'string | string[] | Buffer | Buffer[]'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3048,9): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'ca' must be of type '(string | Buffer)[]', but here has type 'string | Buffer | (string | Buffer)[]'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3287,9): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'padding' must be of type 'any', but here has type 'number'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3292,9): error TS2403: Build :Subsequent variable declarations must have the same type.  Variable 'padding' must be of type 'any', but here has type 'number'.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3550,5): error TS2309: Build :An export assignment cannot be used in a module with other exported elements.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3633,5): error TS2300: Build :Duplicate identifier 'export='.
1>C:\Angular2AspNetCoreStarter\node_modules\@types\node\index.d.ts(3655,18): error TS2300: Build :Duplicate identifier 'Domain'.
1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\browser.d.ts(2,76): error TS2305: Build :Module ''selenium-webdriver'' has no exported member 'Options'.
1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\browser.d.ts(2,116): error TS2305: Build :Module ''selenium-webdriver'' has no exported member 'TargetLocator'.
1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\locators.d.ts(4,39): error TS2304: Build :Cannot find name 'By'.
1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\locators.d.ts(5,27): error TS2304: Build :Cannot find name 'By'.
1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\locators.d.ts(6,25): error TS2304: Build :Cannot find name 'By'.
1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\locators.d.ts(7,37): error TS2304: Build :Cannot find name 'By'.
1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\locators.d.ts(8,25): error TS2304: Build :Cannot find name 'By'.
1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\locators.d.ts(9,29): error TS2304: Build :Cannot find name 'By'.
1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\locators.d.ts(10,47): error TS2304: Build :Cannot find name 'By'.
1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\locators.d.ts(11,35): error TS2304: Build :Cannot find name 'By'.
1>C:\Angular2AspNetCoreStarter\node_modules\protractor\built\locators.d.ts(12,31): error TS2304: Build :Cannot find name 'By'.
1>C:\Angular2AspNetCoreStarter\src\app\app.service.ts(2,26): error TS2307: Build :Cannot find module 'angular2-hmr'.
1>C:\Angular2AspNetCoreStarter\src\main.browser.ts(1,10): error TS2305: Build :Module '"C:/Angular2AspNetCoreStarter/node_modules/@angular/platform-browser-dynamic/index"' has no exported member 'browserDynamicPlatform'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(78,6): error TS2300: Build :Duplicate identifier 'BufferEncoding'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(503,9): error TS2502: Build :'BuffType' is referenced directly or indirectly in its own type annotation.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(504,9): error TS2502: Build :'SlowBuffType' is referenced directly or indirectly in its own type annotation.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(505,26): error TS2300: Build :Duplicate identifier 'Buffer'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(505,50): error TS2300: Build :Duplicate identifier 'SlowBuffer'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(567,22): error TS2320: Build :Interface 'Server' cannot simultaneously extend types 'EventEmitter' and 'Server'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(567,22): error TS2320: Build :Interface 'Server' cannot simultaneously extend types 'EventEmitter' and 'Server'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(567,22): error TS2320: Build :Interface 'Server' cannot simultaneously extend types 'EventEmitter' and 'Server'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(567,22): error TS2320: Build :Interface 'Server' cannot simultaneously extend types 'EventEmitter' and 'Server'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(567,22): error TS2320: Build :Interface 'Server' cannot simultaneously extend types 'EventEmitter' and 'Server'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(567,22): error TS2320: Build :Interface 'Server' cannot simultaneously extend types 'EventEmitter' and 'Server'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(567,22): error TS2320: Build :Interface 'Server' cannot simultaneously extend types 'EventEmitter' and 'Server'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(578,22): error TS2320: Build :Interface 'ServerResponse' cannot simultaneously extend types 'EventEmitter' and 'Writable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(578,22): error TS2320: Build :Interface 'ServerResponse' cannot simultaneously extend types 'EventEmitter' and 'Writable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(578,22): error TS2320: Build :Interface 'ServerResponse' cannot simultaneously extend types 'EventEmitter' and 'Writable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(578,22): error TS2320: Build :Interface 'ServerResponse' cannot simultaneously extend types 'EventEmitter' and 'Writable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(578,22): error TS2320: Build :Interface 'ServerResponse' cannot simultaneously extend types 'EventEmitter' and 'Writable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(578,22): error TS2320: Build :Interface 'ServerResponse' cannot simultaneously extend types 'EventEmitter' and 'Writable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(578,22): error TS2320: Build :Interface 'ServerResponse' cannot simultaneously extend types 'EventEmitter' and 'Writable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(606,22): error TS2320: Build :Interface 'ClientRequest' cannot simultaneously extend types 'EventEmitter' and 'Writable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(606,22): error TS2320: Build :Interface 'ClientRequest' cannot simultaneously extend types 'EventEmitter' and 'Writable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(606,22): error TS2320: Build :Interface 'ClientRequest' cannot simultaneously extend types 'EventEmitter' and 'Writable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(606,22): error TS2320: Build :Interface 'ClientRequest' cannot simultaneously extend types 'EventEmitter' and 'Writable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(606,22): error TS2320: Build :Interface 'ClientRequest' cannot simultaneously extend types 'EventEmitter' and 'Writable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(606,22): error TS2320: Build :Interface 'ClientRequest' cannot simultaneously extend types 'EventEmitter' and 'Writable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(606,22): error TS2320: Build :Interface 'ClientRequest' cannot simultaneously extend types 'EventEmitter' and 'Writable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(632,22): error TS2320: Build :Interface 'IncomingMessage' cannot simultaneously extend types 'EventEmitter' and 'Readable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(632,22): error TS2320: Build :Interface 'IncomingMessage' cannot simultaneously extend types 'EventEmitter' and 'Readable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(632,22): error TS2320: Build :Interface 'IncomingMessage' cannot simultaneously extend types 'EventEmitter' and 'Readable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(632,22): error TS2320: Build :Interface 'IncomingMessage' cannot simultaneously extend types 'EventEmitter' and 'Readable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(632,22): error TS2320: Build :Interface 'IncomingMessage' cannot simultaneously extend types 'EventEmitter' and 'Readable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(632,22): error TS2320: Build :Interface 'IncomingMessage' cannot simultaneously extend types 'EventEmitter' and 'Readable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(632,22): error TS2320: Build :Interface 'IncomingMessage' cannot simultaneously extend types 'EventEmitter' and 'Readable'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(682,18): error TS2300: Build :Duplicate identifier 'Agent'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(727,18): error TS2300: Build :Duplicate identifier 'Worker'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(980,22): error TS2300: Build :Duplicate identifier 'CompleterResult'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(1020,18): error TS2300: Build :Duplicate identifier 'Script'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(1298,22): error TS2320: Build :Interface 'Server' cannot simultaneously extend types 'Socket' and 'EventEmitter'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(1861,18): error TS2300: Build :Duplicate identifier 'TLSSocket'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(2159,18): error TS2420: Build :Class 'Readable' incorrectly implements interface 'ReadableStream'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(2196,18): error TS2420: Build :Class 'Duplex' incorrectly implements interface 'ReadWriteStream'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(2210,18): error TS2420: Build :Class 'Transform' incorrectly implements interface 'ReadWriteStream'.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(2301,5): error TS2300: Build :Duplicate identifier 'export='.
1>C:\Angular2AspNetCoreStarter\typings\globals\node\index.d.ts(2323,18): error TS2300: Build :Duplicate identifier 'Domain'.
========== Generate :1 failed ==========

@psaussure
Copy link
Contributor Author

Also installed the Task Runner, in its build output I get:

C:\Angular2AspNetCoreStarter> cmd.exe /c npm run build --color=always
> allied-admin@1.0.0 prebuild C:\Angular2AspNetCoreStarter
> npm run clean
> allied-admin@1.0.0 clean C:\Angular2AspNetCoreStarter
> rimraf -- wwwroot
> allied-admin@1.0.0 postclean C:\Angular2AspNetCoreStarter
> ng build
internal/process/stdio.js:82
        throw new Error('Implement me. Unknown stdin file type!');
        ^
Error: Implement me. Unknown stdin file type!
    at process.getStdin [as stdin] (internal/process/stdio.js:82:15)
    at C:\Angular2AspNetCoreStarter\node_modules\angular-cli\bin\ng:38:27
    at C:\Angular2AspNetCoreStarter\node_modules\resolve\lib\async.js:45:21
    at ondir (C:\Angular2AspNetCoreStarter\node_modules\resolve\lib\async.js:188:31)
    at C:\Angular2AspNetCoreStarter\node_modules\resolve\lib\async.js:154:39
    at onex (C:\Angular2AspNetCoreStarter\node_modules\resolve\lib\async.js:94:22)
    at C:\Angular2AspNetCoreStarter\node_modules\resolve\lib\async.js:25:18
    at FSReqWrap.oncomplete (fs.js:111:15)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Angular2AspNetCoreStarter\\node_modules\\npm\\bin\\npm-cli.js" "run" "clean"
npm ERR! node v7.2.1
npm ERR! npm  v2.14.21
npm ERR! code ELIFECYCLE
npm ERR! allied-admin@1.0.0 postclean: `ng build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the allied-admin@1.0.0 postclean script 'ng build'.
npm ERR! This is most likely a problem with the allied-admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ng build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs allied-admin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! 
npm ERR!     npm owner ls allied-admin
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Angular2AspNetCoreStarter\npm-debug.log

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\xxxx\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "build" "--color=always"
npm ERR! node v7.2.1
npm ERR! npm  v4.0.5
npm ERR! code ELIFECYCLE
npm ERR! allied-admin@1.0.0 prebuild: `npm run clean`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the allied-admin@1.0.0 prebuild script 'npm run clean'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the allied-admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run clean
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs allied-admin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls allied-admin
npm ERR! There is likely additional logging output above.
Processus terminé avec le code 1.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Angular2AspNetCoreStarter\npm-debug.log

C:\Angular2AspNetCoreStarter> cmd.exe /c npm run build --color=always
> allied-admin@1.0.0 prebuild C:\Angular2AspNetCoreStarter
> npm run clean
> allied-admin@1.0.0 clean C:\Angular2AspNetCoreStarter
> rimraf -- wwwroot
> allied-admin@1.0.0 postclean C:\Angular2AspNetCoreStarter
> ng build
internal/process/stdio.js:82
        throw new Error('Implement me. Unknown stdin file type!');
        ^
Error: Implement me. Unknown stdin file type!
    at process.getStdin [as stdin] (internal/process/stdio.js:82:15)
    at C:\Angular2AspNetCoreStarter\node_modules\angular-cli\bin\ng:38:27
    at C:\Angular2AspNetCoreStarter\node_modules\resolve\lib\async.js:45:21
    at ondir (C:\Angular2AspNetCoreStarter\node_modules\resolve\lib\async.js:188:31)
    at C:\Angular2AspNetCoreStarter\node_modules\resolve\lib\async.js:154:39
    at onex (C:\Angular2AspNetCoreStarter\node_modules\resolve\lib\async.js:94:22)
    at C:\Angular2AspNetCoreStarter\node_modules\resolve\lib\async.js:25:18
    at FSReqWrap.oncomplete (fs.js:111:15)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Angular2AspNetCoreStarter\\node_modules\\npm\\bin\\npm-cli.js" "run" "clean"
npm ERR! node v7.2.1
npm ERR! npm  v2.14.21
npm ERR! code ELIFECYCLE
npm ERR! allied-admin@1.0.0 postclean: `ng build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the allied-admin@1.0.0 postclean script 'ng build'.
npm ERR! This is most likely a problem with the allied-admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ng build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs allied-admin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! 
npm ERR!     npm owner ls allied-admin
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Angular2AspNetCoreStarter\npm-debug.log

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\xxxx\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "build" "--color=always"
npm ERR! node v7.2.1
npm ERR! npm  v4.0.5
npm ERR! code ELIFECYCLE
npm ERR! allied-admin@1.0.0 prebuild: `npm run clean`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the allied-admin@1.0.0 prebuild script 'npm run clean'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the allied-admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run clean
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs allied-admin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls allied-admin
npm ERR! There is likely additional logging output above.
Processus ended with code 1.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Angular2AspNetCoreStarter\npm-debug.log

Required npm-debug.log:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\xxxx\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'build',
1 verbose cli   '--color=always' ]
2 info using npm@4.0.5
3 info using node@v7.2.1
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle allied-admin@1.0.0~prebuild: allied-admin@1.0.0
6 verbose lifecycle allied-admin@1.0.0~prebuild: unsafe-perm in lifecycle true
7 verbose lifecycle allied-admin@1.0.0~prebuild: PATH: C:\Users\xxxx\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;C:\Angular2AspNetCoreStarter\node_modules\.bin;C:\Program Files\nodejs;.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\NativeBinaries\x86;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\NativeBinaries\x86;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files\Git\cmd;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\dotnet\;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Heroku\bin;C:\Program Files (x86)\git\cmd;C:\Program Files (x86)\Git\cmd;C:\Program Files\nodejs\;C:\Program Files\TortoiseGit\bin;C:\Users\xxxx\AppData\Local\Programs\Python\Python35-32\Scripts\;C:\Users\xxxx\AppData\Local\Programs\Python\Python35-32\;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Users\xxxx\AppData\Roaming\npm;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\git
8 verbose lifecycle allied-admin@1.0.0~prebuild: CWD: C:\Angular2AspNetCoreStarter
9 silly lifecycle allied-admin@1.0.0~prebuild: Args: [ '/d /s /c', 'npm run clean' ]
10 silly lifecycle allied-admin@1.0.0~prebuild: Returned: code: 1  signal: null
11 info lifecycle allied-admin@1.0.0~prebuild: Failed to exec prebuild script
12 verbose stack Error: allied-admin@1.0.0 prebuild: `npm run clean`
12 verbose stack Exit status 1
12 verbose stack     at EventEmitter.<anonymous> (C:\Users\xxxx\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:279:16)
12 verbose stack     at emitTwo (events.js:106:13)
12 verbose stack     at EventEmitter.emit (events.js:191:7)
12 verbose stack     at ChildProcess.<anonymous> (C:\Users\xxxx\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14)
12 verbose stack     at emitTwo (events.js:106:13)
12 verbose stack     at ChildProcess.emit (events.js:191:7)
12 verbose stack     at maybeClose (internal/child_process.js:885:16)
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
13 verbose pkgid allied-admin@1.0.0
14 verbose cwd C:\Angular2AspNetCoreStarter
15 error Windows_NT 6.1.7601
16 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\xxxx\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "build" "--color=always"
17 error node v7.2.1
18 error npm  v4.0.5
19 error code ELIFECYCLE
20 error allied-admin@1.0.0 prebuild: `npm run clean`
20 error Exit status 1
21 error Failed at the allied-admin@1.0.0 prebuild script 'npm run clean'.
21 error Make sure you have the latest version of node.js and npm installed.
21 error If you do, this is most likely a problem with the allied-admin package,
21 error not with npm itself.
21 error Tell the author that this fails on your system:
21 error     npm run clean
21 error You can get information on how to open an issue for this project with:
21 error     npm bugs allied-admin
21 error Or if that isn't available, you can get their info via:
21 error     npm owner ls allied-admin
21 error There is likely additional logging output above.
22 verbose exit [ 1, true ]

@wickdninja
Copy link
Owner

thanks for the logs 👍 I'll see if I can get an answer for you ASAP. As to updating dependencies: Yes. I plan to update dotnet and angular dependencies, but simply have not had a chance to yet.

@psaussure
Copy link
Contributor Author

Will be glad to help :)

@wickdninja
Copy link
Owner

PRs are always welcome :) This started out as a side project that came out of something developed at work. As a result my time for it is limited. I probably won't get around to upgrading till early Jan 2017 (ish).

@psaussure
Copy link
Contributor Author

psaussure commented Dec 22, 2016

First thing, I'd like to have it work. PR will come later for sure. Can you list your globally installed packages?

All the errors seems to come from typings.

@psaussure
Copy link
Contributor Author

psaussure commented Dec 22, 2016

Where exactly do you define the fact that at build, on VS2015, it must npm install things before and do a ng build? I would like to prevent VS2015 to do anything and do every build and install by hand to test it.

@wickdninja
Copy link
Owner

There is a pre build hook in the package.json

  "-vs-binding": {
    "BeforeBuild": [
      "build"
    ]
  }

this kicks off these npm scripts:

 "clean": "rimraf -- wwwroot",
 "postclean": "ng build",
 "prebuild": "npm run clean",
 "build": "dotnet build",

which executes the scripts in the following order:
1st prebuild (triggers clean)
2nd clean (removes wwwroot and triggers postclean after completion)
3rd postclean (triggers ng build)
4th build (triggers dotnet build)

Looking at your logs again it would appear that your VS2015 is attempting to compile the Typescript files, where as mine is not (angular-cli handles all TypeScript compilation). I was looking through my csproj and other settings and have not discovered where this functionality is being controlled.

However, I have used the following in other projects to prevent the TypeScript compilation by VS, but this is not how this project is configured.... My only thought is that I may have another extension that I had forgotten about. Looking into this now.

Just add <TypeScriptCompileBlocked>true</TypeScriptCompileBlocked> to the .csproj, e.g. in the first <PropertyGroup>.

Taken from last comment in microsoft/TypeScript#2294

@psaussure
Copy link
Contributor Author

psaussure commented Dec 22, 2016

I gave it a try. Everything builds correctly now. BUT, nothing shows up on page. I get a 404 on the given port. IISExpress or your own build profile gives the same result. Will open another issue after having tried some stuff.

VS Code run bug still present.

@wickdninja
Copy link
Owner

I was working with the Angular-CLI team and created a starter project / tutorial that replaces this project. You can find the project here: https://github.com/wickdninja/DotNetCoreAngular2Demo

So as of today repo is 💀 and will be removed at some point in the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants