If you are getting the following error while running ng test: the solution is to import ReactiveFormsModule in your spec file of your component The full file will look like this:More
The best programming blog.
Covering a wide array of programming topics.
NullInjectorError: No provider for ActivatedRoute!
If you are getting the following error while running ng test: the solution is to import RouterTestingModule in your spec file of your component The full file will look like this:More
NullInjectorError: No provider for UrlSerializer!
If you are getting the following error while running ng test: the solution is to import RouterTestingModule in your spec file of your component The full file will look like this:More
How to update Ionic version on MAC
Run the following command to update the Ionic version on MAC. Run the following command to confirm the version of Ionic The above command will give you output like this: Your Ionic version has been updated after following that above steps.More
Azure mapping values are not allowed in this context
If you are getting the following error while running your azure devops pipeline: The error comes when you have extra indendtation in your yaml file for sub properties, for example this case: In the above example, the clean: false property is having extra indentation. The solution is to fix the indentation and write it like…More
npm WARN config global local are deprecated
While running npm i if you are getting the following error: The solution is to replace the following line: with the following command: The npm WARN config global –global, –local are deprecated issue will be fixed after that.More
How to check Ubuntu version using hostnamectl
Below is the command to check/find the ubuntu version using hostnamectl: The output will be like this: Aove result displays the version of Ubuntu installed and that is Ubuntu 20.04.4 LTSMore
MySQL To use this as a variable, set Allow User Variables=true connection string
Issue: Getting the following error while executing the query against MySQL DB: Solution is to add the follwing line at the last of your MySQL connection string: The full connection string will look like this:More
Make sure your user.name and user.email in git vscode
While pushing the commit in Visual Studio Code if you are getting the following error: the solution is to run the following commands to fix the issue: In the above commands replace Your Display Name and Your Email with your own values. After running the above commands the make sure your user.name and user.email in…More
ng serve ng.ps1 cannot be loaded because running scripts is disabled on this system
If you are getting the following issue while running ng serve: the solution is to run the following command in Powershell: Make sure you have opened the Powershell as Run as admin Your issue will be fixed and this time ng serve command will work.More