Your process for building a widget has a bug somewhere. I first set up the environment (following your video here: https://gettingstarted.mendixcloud.com/link/module/163/lecture/1542), then created the project (following this: https://gettingstarted.mendixcloud.com/link/module/134/lecture/1269). I then open it in VS Code, and typed “gulp”. The watch task failed to create with this error: Error: watching ./src/**/*: watch task has to be a function (optionally generated by using gulp.parallel or gulp.series) at Gulp.watch (D:\Data\Mendix\Widgets\reCaptcha\node_modules\gulp\index.js:31:11) at D:\Data\Mendix\Widgets\reCaptcha\gulpfile.js:47:14 at bound (domain.js:395:14) at runBound (domain.js:408:12) at asyncRunner (D:\Data\Mendix\Widgets\reCaptcha\node_modules\async-done\index.js:55:18) at process._tickCallback (internal/process/next_tick.js:61:11) I’m looking into how to fix this, but if someone already knows, please let me know. Perhaps something broke in a newer version, but I’m surprised by now I’m the only one reporting it.
If you are using mx 8, then you should check out building a pluggable widget. The yeoman generator is using the dojo framework and the pluggable widget is using React.