You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior:
No error
When I run watch, I got the following error
Actual behavior:
[22:39:13] Error: gulp-typescript: A project cannot be used in two compilations at the same time. Create multiple projects with createProject instead.
at project (/Users/zhutian/Code/billofchen/node_modules/gulp-typescript/release/project.js:36:19)
at componentTS (/Users/zhutian/Code/billofchen/gulpfile.js:50:15)
at bound (domain.js:415:14)
at runBound (domain.js:428:12)
at asyncRunner (/Users/zhutian/Code/billofchen/node_modules/async-done/index.js:55:18)
at processTicksAndRejections (internal/process/task_queues.js:75:11)
I got around this by creating the tsProject inside the Gulp task, which the docs say not to do... but it was the only thing I could find that stopped this error from happening. I only have the one build task that uses the tsProject and watch just calls that.
Note my Gulpfile is also in TypeScript, unclear if that makes a difference.
Expected behavior:
No error
When I run watch, I got the following error
Actual behavior:
[22:39:13] Error: gulp-typescript: A project cannot be used in two compilations at the same time. Create multiple projects with createProject instead.
at project (/Users/zhutian/Code/billofchen/node_modules/gulp-typescript/release/project.js:36:19)
at componentTS (/Users/zhutian/Code/billofchen/gulpfile.js:50:15)
at bound (domain.js:415:14)
at runBound (domain.js:428:12)
at asyncRunner (/Users/zhutian/Code/billofchen/node_modules/async-done/index.js:55:18)
at processTicksAndRejections (internal/process/task_queues.js:75:11)
Your gulpfile:
tsconfig.json
Include your tsconfig, if related to this issue.
The text was updated successfully, but these errors were encountered: