✨ Welcome to LocalUsr.com; a blog that aims to provide information about software development & the issues that developers encounter during software development.

How to test local builds of JS projects located outside the src folder in React projects

When using create-react-app to generate a React project, you might want to use JavaScript code that you are developing externally from the react project, However, create-react-app has a plugin that blocks referencing files that are in the external src folder of the react project. In this article, I show you how to reference external files and use them in the react project.
Read more →

How to Fix Prettier Code Style Issues

During your coding, you might encounter a prettier problem where it shows a list of files that have coding styles issues. After that you’re asked if you ran prettier? Huh? I will show you how to fix that.
Read more →

How to Merge Unrelated Histories in Git

In git, you can merge two branches that do not have a common base. However, this leads to creation of a new history for your project. In the event that the histories of the two branches are not the same, you will encounter an error that forbids merging unrelated histories. This article will show you how to fix this error.
Read more →

How to fix and recover a “corrupt history file” in ZSH

Once in a while, you will come across an error like “corrupt history file” when using the ZSH shell after doing something like a hard shutdown of your computer. This error can easily be fixed by re-writing the history file. In this article, the history file is named .zsh_history which is always the case but if the error shows a different file name, substitute that in.
Read more →