-
Notifications
You must be signed in to change notification settings - Fork 3
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
Comments
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
I will continue to look into this issue later today. |
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. |
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.
More steps:
After build on command line, tried also to RUN in VS2015: (IIS Express I guess):
|
Also installed the Task Runner, in its build output I get:
Required npm-debug.log:
|
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. |
Will be glad to help :) |
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). |
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. |
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. |
There is a pre build hook in the package.json
this kicks off these npm scripts:
which executes the scripts in the following order: 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.
Taken from last comment in microsoft/TypeScript#2294 |
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. |
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. |
Error on build
Just after cloning the project, trying to run it via F5 on VS2015 throw errors
Steps
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 ==========
The text was updated successfully, but these errors were encountered: