Error: Solution: Remove import { StorageServiceModule } from ‘ngx-webstorage-service’; from the app module along with removing StorageServiceModule from imports on app module. The following import is enough to use localstorage/webstorage in angularMore
The best programming blog.
Covering a wide array of programming topics.
Angular More than one module matches adding component
Error while add anew new component via ng g c YourComponent command. The solution is to specify –module parameter in the ng generate command and specify the exact module to which you want to add the component. Below is the full command to do the same: Above the component is being added to SharedModule. You…More
OSError: Distant resource does not have an ETag, we won’t be able to reliably ensure reproducibility.
While downloading and setting up Bloom AI locally, you might get this error while running the code shown in this Github repository: https://github.com/dptrsa-300/start_with_bloom/blob/main/bloomex_nb.ipynb python3 HelloBloom.py Traceback (most recent call last):File “/AI/Jarasandh/lib/python3.9/site-packages/transformers/configuration_utils.py”, line 616, in _get_config_dictresolved_config_file = cached_path(File “/AI/Jarasandh/lib/python3.9/site-packages/transformers/utils/hub.py”, line 284, in cached_pathoutput_path = get_from_cache(File “/AI/Jarasandh/lib/python3.9/site-packages/transformers/utils/hub.py”, line 508, in get_from_cacheraise OSError(OSError: Distant resource does not have…More
Restart aws cloudwatch agent
Below is the command to restart the Amazon’s AWS CloudWatch agent: Verify the status of the agent by running the following command: Output: The Active: active (running) status signifies that the CloudWatch agent has been actively runinng now.More
Check dotnet version mac
Below is the command to check dotnet version installed on MAC, you can run the command in the terminal: The out put will be like this: ABove, 6.0.7 is the dotnet version installed on the machine.More
Angular Error: Module not found: Error: Can’t resolve ‘zlib’ in
If you are getting these weird compilation errors in your Angular project suddenly while working in your Angular project: The reason for that issue could be that you have accidentally imported an incorrect import in your component. It could be because of an import imported from express, example: The solution for the above issue will…More
Angular run a single test spec file
In order to run a single test spec file using ng test command you need to follow the following steps. Let’s say the name of your spec file is yourservice.service.spec.ts: Go to the/src/test.ts file present in your angular project. Replace the second last line of that file i.e replace the following code: with this: i.e…More
Tap deprecated use an observer argument
Warning: Instead of passing separate callback arguments, use an observer argument. tap signature taking separate callback arguments will be removed in v8 The solution is that instead of using the following signature: you need to use the following signature for tap now:More
Visual Studio Code add bookmarks
Click extensions menu and type Bookmarks in the search box in Visual Studio Code. Install the first result coming there i.e Bookmarks one. After installing that extension, you can add a bookmark in Visual Studio Code with the help of following command: In order to jump to next bookmark you can press the following key…More
How to enable MFA on AWS account
To protect your AWS account, you can add an additional layer of security called Multi-Factor Authentication (MFA). Enabling Multi-Factor Authentication (MFA) on your AWS account is easy and can help protect against unauthorized access to your resources. By following the steps outlined above, you can quickly and easily set up MFA for your AWS account,…More