jvandemo / jvandemo/generator-angular2-library

Compilation errors cause `gulp:watch` and `playground` tasks to fail & exit

Open
#271 3 comments 0 reactions 0 assignees View on GitHub
Status: In Progress Type: Bug Type: Question
Dominant language
JavaScript
Stars
740
Forks
116
PR merge metrics
No merged PRs in 30d

Description

If you run the `gulp:watch` or `playground` tasks and make a coding error that causes a compilation failure, it stops the watch task and requires a restart. The failure seems to happen in the rollup tasks as the index.js file doesn't exist after ngc failure:

[0] [11:36:43] Starting 'rollup:fesm'...
[0]
[0] events.js:160
[0] throw er; // Unhandled 'error' event

Since I would imagine this is quite a common occurrence, and it is annoying to have to keep restarting your watch/playground task mnually, it would be nice to handle compilation errors more gracefully.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the gulp:watch and playground task definitions and trace the rollup tasks around the missing index.js after an ngc failure. Reproduce a compilation error, then verify that the watch or playground task remains running and can recover when the code is corrected.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, javascript
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.