forge install : fatal: Not a git repository (or any of the parent directories)

Run forge install some-repo command then get fatal: Not a git repository (or any of the parent directories)error. Because there are no .git folder!
Solve the problem by run forge init (or forge init --force)

npkill - tool to remove node_modules

There is a fast way to remove node_modules folder, which can help us save mamory wonderfully.

  1. Run npx npkill in terminal
  2. Select folder you want to delete and press SPACE key ! How simple is it ?

Cannot read properties of undefined (reading 'importKey')

I encounter error like picture when click button which used to connect wallet extension in AWS ubuntu environment : This error appears if open web by using http not https. Establish SSL connection and become https, problem solved !

Slither Error Source "@openzeppelin/contracts/access/Ownable.sol" not found

Run slither command then encounter error like :

Error: Source "@openzeppelin/contracts/access/Ownable.sol" not found: File not found. Searched the following locations: "".

Solution : add some flag behind original command ex.

slither contracts/YOUR_CONTRACT.sol  --solc-remaps @openzeppelin/=$(pwd)/node_modules/@openzeppelin/

Hydration failed because the initial UI does not match what was rendered on the server.

Error: Hydration failed because the initial UI does not match what was rendered on the server.

I encounter this problem after modify my folder location, and I solve this by cleaning the browser cache & to delete .next folder .