Gulp File Task never defined: licenses - gulp

I am trying to deploy my react app on netlify and the log gives me this error.
Belowe here is the gulpfile , Anyone knows why this error occurs? Thanks!

I think this is because the task() API is not recommended any more.
Try to export your tasks instead. https://gulpjs.com/docs/en/getting-started/creating-tasks

Related

issue with Railway when trying to deploy express mysql app npm WARN config production Use `--omit=dev` instead

Basically what's happening is that when I try to deploy my Express, MySQL, Sequelize website in Railway, it's returning me the following error:
"npm WARN config production Use --omit=dev instead"
I don't think showing any code is necessary but, if you'd think it is, just let me know.
Thank you very much!

How do I fix gulpfile.js to avoid "Did you forget to signal async completion?" when running "gulp ngrok-serve" and DO NOT have the task defined?

I used 2 tutorial clips from Microsoft (first, second) to build a sample Teams Message Extension.
I'm down to the final step of really starting the app with the gulp ngrok-serve command, but I get this error message:
...
[16:05:29] Watching .env
[16:05:29] The following tasks did not complete: ngrok-serve, serve, watch
[16:05:29] Did you forget to signal async completion?
I've read various suggestions on how to fix this, but the problem in my case is that I don't have the "ngrok-serve" task defined in my file. It seems to be running a "default" version of it.
So how should I define/overwrite it, so that I can fix it's implementation, in my gulpfile.js file ?
Thank you.
We were able to run the app successfully using gulp serve, as mentioned in the Build your first Microsoft Teams app using the Yeoman generator documentation. Please run the app using gulp serve.

Gulp bundle --ship: The build failed because a task wrote output to stderr

I've been getting this error when trying to do a gulp bundle --ship command:
The build failed because a task wrote output to stderr.
Exiting with exit code: 1
I'm pretty new to this so have no idea how to proceed with it. It's happening even when I run through the helloworld webpart now. The gulp serve works and I can bundle and package the solution as long as I don't add a --ship to it. I've written and published apps before on the same machine so I don't know what is different now.
I've uninstalled every extension and re-installed the application but it's still doing it. Any help would be appreciated.
Just for quick win you can use --debug flag for bundling task instead of --ship until this bug will be fixed in future releases:
gulp bundle --debug
gulp package-solution --ship
The bundled file will be bigger, but at least you are not getting "The build failed because a task wrote output to stderr" error in CI/CD.
It normally happens because of the warnings. You can add suppression like mentioned below in gulpfile.js
build.addSuppression(Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.);
build.addSuppression(/Warning/gi);
I got this error because caniuse-lite needed a database update. It was confusing because there was no red error message.
Easy fix: npx browserslist#latest --update-db

power bi Playground

I have been struggling to run the powerBI playground using Gulp or Visual Studio on Windows 10.I havent tried on any other windows version yet.
I followed all the steps provided at below URL:
https://github.com/Microsoft/PowerBI-visuals-core
When use the command - gulp playground , a URL is launched in the browser. But no visualization is available and all the dropdowns are empty.
When I use the command - gulp build , I'm receiving many errors like one below:
ERROR in ./src/Clients/PowerBIVisualsTests/visuals/verticalSlicerTests.ts
Module build failed: TypeError: Cannot read property 'getEmitOutput' of null
at Object.loader (C:\PowerBI-visuals\node_modules\ts-loader\index.js:422:33)
To run the project in Visual Studio, you need to copy the PowerBI-visuals-core\lib folder to PowerBI-visuals-core\src\Clients\PowerBIVisualsPlayground.
Source. (Not sure if this will help with gulp build)

No gulp file found (windows)

have a problem with gulp. I've been using gulp for 3 months. And for the first time a have an issue like this:
When I try to run gulp, command line shows: no gulp file found. I use node, and I got project from my friend to fix code. Thank, U!
gulp is telling you that it doesn't have a gulpfile with instructions for it to follow. Please make sure you were in correct directory that contains gulpfile.js. It will be better if you could show your project structure here.