Slither Error Source "@openzeppelin/contracts/access/Ownable.sol" not found
13 Aug 2022solidity
smart-contract
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/