gulp-flowtype is not working for me. Not finding errors. Long running time.
See original GitHub issueI am not sure why, when I use gulp-typeflow it takes 12s to run the code and it finds 0 erros, while running “flow” command finds errors missed by gulp-typeflow.
I’ve replaced gulp meanwhile to work with regular ‘flow’ cmd command which works with the .flowconfig settings
Previous flow task ( with gulp-flowtype )
gulp.task('flowtypeSrc', () =>
gulp.src(paths.srcJs)
.pipe(flow({
all: true,
weak: false,
declarations: './flow-typed/npm',
killFlow: false,
beep: true,
abort: true,
})) // Add Flow here
);
Output: … ✔ Flow has found 0 errors [12:22:05] Finished ‘flowtypeSrc’ after 11 s …
Actually fails to find erros… and runs 11 seconds.
My current flow task:
gulp.task('flowtypeSrc', () => {
try {
execSync('./node_modules/.bin/flow', { stdio: 'inherit' });
} catch (e) {
gulp.stop();
}
});
Output: … Found 1 error [12:14:17] Finished ‘flowtypeSrc’ after 308 ms …
I hope to contribute when I get the time, meanwhile this is a valid solution for others with the same problem.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Issues · charliedowler/gulp-flowtype - GitHub
busts_in_silhouette: Run Facebook's Flow in your gulp pipeline - Issues ... gulp-flowtype is not working for me. Not finding errors. Long running time....
Read more >charliedowler/gulp-flowtype - Gitter
When not using that option, it takes 5s to run the first time and then around ... I'm getting Fatal error: exception Failure(".flowconfig:5...
Read more >Long-running Dataflow job fails with no errors in user code
I was having the same problem and it was solved by scaling up my workers resources. Specifically, I set --machine_type=n1-highcpu-96 in my ...
Read more >COMMON ERRORS IN KRONOS AND HOW TO FIX THEM
Employees are not allowed to record their work time until they have actually worked it. Some employees think it is okay to record...
Read more >ESP32-CAM Troubleshooting Guide: Most Common Problems ...
This error means that the ESP32-CAM is not in flashing mode or it is not ... What worked for me was first flashing...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Seems to be a problem in the executable flow file that is located in
node_modules/gulp-flowtype/node_modules/flow-bin/vendor/flow
. Solved this problem by installing flow-binyarn add --dev flow-bin
and pointing the path to flowprocess.env.FLOW_BIN = path.resolve(__dirname, 'node_modules/.bin/flow')
. Now everything works like a charm.@alexxmde Gotcha Alex 😃 nice find.
This library seems unmaintained for several years, and it has it’s reasons
But still nice catch 😃 brings me peace to know it’s solved.