antonybudianto / angular-starter

:star: Gulp Angular Starter using TypeScript (Updated to 4.4.3)

Home Page:https://antonybudianto.github.io/angular-starter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp main task fail at Windows.

gintsgints opened this issue · comments

commented

Issue Overview

First build after clone gives error: "A project cannot be used in two compilations at the same time. Create multiple projects with createProject instead"

Issue Description

After clone I issued:

npm install
bower install

Next command:

gulp

Gives me error:
Compiling C:\Users\gpolis\Documents\work\ang2\angular2-starter\app\app.component.ts...
C:\Users\gpolis\Documents\work\ang2\angular2-starter\node_modules\gulp-typescript\release\main.js:71
throw new Error('gulp-typescript: A project cannot be used in two compilations at the same time. Create multiple projects with createProject instead.');
^

Error: gulp-typescript: A project cannot be used in two compilations at the same time. Create multiple projects with createProject instead.
at compile (C:\Users\gpolis\Documents\work\ang2\angular2-starter\node_modules\gulp-typescript\release\main.js:71:19)

Reproducables

git clone
npm install
bower install
gulp

Information

Operating System Windows
Node version 4.x
NPM Version 3.x
Environment Browser

I think this is the plugin issue

I can't reproduce the issue, can you also post the issue to the plugin repo?
Thanks

commented

Ok. Will do.

Nice, you should link the typescript.js in tasks too

commented

Probably you get this message with latest gulp-typescript?

As stated at they message, you need to create own project for each compilation task.

i didn't get any message though, everything works well.
i didn't think one would call those tasks at the same time though, then
I will refactor the compile tasks soon, for the moment, you can move the createProject statement into each task as they said

commented

Check my pull request. Worked for me.

that was fast! thank you

Merged!
Thank you @gintsgints for PR! 👍