delete node modules and reinstall yarn code example
Example 1: how to uninstall a package with yarn
yarn remove <package_name>
Example 2: yarn remove package
yarn remove `package`
yarn remove <package_name>
yarn remove `package`