Closed SiddharthMalhotra closed 8 years ago
Hi, We build our static (Typescript) content through Gulp script. Although it works most of the time, we see it fail irregularly on the build server with the following errors. We use TeamCity.
[Step 7/15] ---------------------------------- [11:24:00][Step 7/15] ⨯ Unable to compile TypeScript [11:24:00][Step 7/15] [11:24:00][Step 7/15] gulpfile.ts (1,23): Cannot find module 'gulp'. (2307) [11:24:00][Step 7/15] tools\config.ts (1,28): Cannot find module 'fs'. (2307) [11:24:00][Step 7/15] tools\config.ts (2,20): Cannot find module 'yargs'. (2307) [11:24:00][Step 7/15] tools\config.ts (84,27): Cannot find name 'require'. (2304) [11:24:00][Step 7/15] tools\utils.ts (9,17): Cannot find name 'require'. (2304) [11:24:00][Step 7/15] tools\utils\server.ts (1,36): Cannot find module 'connect-livereload'. (2307) [11:24:00][Step 7/15] tools\utils\server.ts (2,26): Cannot find module 'express'. (2307) [11:24:00][Step 7/15] tools\utils\server.ts (5,30): Cannot find module 'serve-static'. (2307) [11:24:00][Step 7/15] tools\utils\server.ts (6,23): Cannot find module 'path'. (2307) [11:24:00][Step 7/15] tools\utils\server.ts (19,20): Cannot find name 'process'. (2304) [11:24:00][Step 7/15] tools\utils\server.ts (35,27): Cannot find name 'process'. (2304) [11:24:00][Step 7/15] tools\utils\server.ts (53,25): Cannot find name 'process'. (2304) [11:24:00][Step 7/15] tools\utils\tasks_tools.ts (1,23): Cannot find module 'gulp'. (2307) [11:24:00][Step 7/15] tools\utils\tasks_tools.ts (2,23): Cannot find module 'gulp-util'. (2307) [11:24:00][Step 7/15] tools\utils\tasks_tools.ts (3,24): Cannot find module 'chalk'. (2307) [11:24:00][Step 7/15] tools\utils\tasks_tools.ts (4,34): Cannot find module 'gulp-load-plugins'. (2307) [11:24:00][Step 7/15] tools\utils\tasks_tools.ts (5,31): Cannot find module 'run-sequence'. (2307) [11:24:00][Step 7/15] tools\utils\tasks_tools.ts (6,50): Cannot find module 'fs'. (2307) [11:24:00][Step 7/15] tools\utils\tasks_tools.ts (7,20): Cannot find module 'path'. (2307) [11:24:00][Step 7/15] tools\utils\tasks_tools.ts (19,10): Cannot find name 'require'. (2304) [11:24:00][Step 7/15] tools\utils\template-injectables.ts (2,20): Cannot find module 'path'. (2307) [11:24:00][Step 7/15] ---------------------------------- [11:24:00][Step 7/15] Process exited with code 1
The content of our Gulp task is as follows: gulp.task('build.dev2', done => runSequence('clean.dist', 'clean.tmp', 'build.sass.dev', 'build.img.dev', // 'build.html_css.dev2', 'build.deps', 'build.js.dev', //'build.js.dev2', //'build.bundles', 'build.index', done)
gulp.task('build.dev2', done => runSequence('clean.dist', 'clean.tmp', 'build.sass.dev', 'build.img.dev', // 'build.html_css.dev2', 'build.deps', 'build.js.dev', //'build.js.dev2', //'build.bundles', 'build.index', done)
This is initiated using gulp build.dev2 --env dev2
gulp build.dev2 --env dev2
Where could the problem be? Is there anyway we can avoid this irregular problem? Is there anything we have to improve in the Gulp Task used?
Support questions should be directed to StackOverflow.
Hi, We build our static (Typescript) content through Gulp script. Although it works most of the time, we see it fail irregularly on the build server with the following errors. We use TeamCity.
[Step 7/15] ---------------------------------- [11:24:00][Step 7/15] ⨯ Unable to compile TypeScript [11:24:00][Step 7/15] [11:24:00][Step 7/15] gulpfile.ts (1,23): Cannot find module 'gulp'. (2307) [11:24:00][Step 7/15] tools\config.ts (1,28): Cannot find module 'fs'. (2307) [11:24:00][Step 7/15] tools\config.ts (2,20): Cannot find module 'yargs'. (2307) [11:24:00][Step 7/15] tools\config.ts (84,27): Cannot find name 'require'. (2304) [11:24:00][Step 7/15] tools\utils.ts (9,17): Cannot find name 'require'. (2304) [11:24:00][Step 7/15] tools\utils\server.ts (1,36): Cannot find module 'connect-livereload'. (2307) [11:24:00][Step 7/15] tools\utils\server.ts (2,26): Cannot find module 'express'. (2307) [11:24:00][Step 7/15] tools\utils\server.ts (5,30): Cannot find module 'serve-static'. (2307) [11:24:00][Step 7/15] tools\utils\server.ts (6,23): Cannot find module 'path'. (2307) [11:24:00][Step 7/15] tools\utils\server.ts (19,20): Cannot find name 'process'. (2304) [11:24:00][Step 7/15] tools\utils\server.ts (35,27): Cannot find name 'process'. (2304) [11:24:00][Step 7/15] tools\utils\server.ts (53,25): Cannot find name 'process'. (2304) [11:24:00][Step 7/15] tools\utils\tasks_tools.ts (1,23): Cannot find module 'gulp'. (2307) [11:24:00][Step 7/15] tools\utils\tasks_tools.ts (2,23): Cannot find module 'gulp-util'. (2307) [11:24:00][Step 7/15] tools\utils\tasks_tools.ts (3,24): Cannot find module 'chalk'. (2307) [11:24:00][Step 7/15] tools\utils\tasks_tools.ts (4,34): Cannot find module 'gulp-load-plugins'. (2307) [11:24:00][Step 7/15] tools\utils\tasks_tools.ts (5,31): Cannot find module 'run-sequence'. (2307) [11:24:00][Step 7/15] tools\utils\tasks_tools.ts (6,50): Cannot find module 'fs'. (2307) [11:24:00][Step 7/15] tools\utils\tasks_tools.ts (7,20): Cannot find module 'path'. (2307) [11:24:00][Step 7/15] tools\utils\tasks_tools.ts (19,10): Cannot find name 'require'. (2304) [11:24:00][Step 7/15] tools\utils\template-injectables.ts (2,20): Cannot find module 'path'. (2307) [11:24:00][Step 7/15] ---------------------------------- [11:24:00][Step 7/15] Process exited with code 1
The content of our Gulp task is as follows:
gulp.task('build.dev2', done => runSequence('clean.dist', 'clean.tmp', 'build.sass.dev', 'build.img.dev', // 'build.html_css.dev2', 'build.deps', 'build.js.dev', //'build.js.dev2', //'build.bundles', 'build.index', done)
This is initiated using
gulp build.dev2 --env dev2
Where could the problem be? Is there anyway we can avoid this irregular problem? Is there anything we have to improve in the Gulp Task used?