install gatsby-plugin-sharp plugin but when run command
gatsby develop
then return error
@KamranMaqbool I sometimes see this, especially when moving between different branches that have different dependency versions, sharp seems especially vulnerable to this.
To resolve I do (with yarn):
rm -r node_modules/sharp
yarn install --check-files
Thank you for opening this, @KamranMaqbool
There are several issues discussing this problem with suggested solutions:
Try those, one of them should fix it for you.
We're marking this issue as answered and closing it for now but please feel free to reopen this and comment if you would like to continue this discussion. We hope we managed to help and thank you for using Gatsby! 馃挏
Most helpful comment
@KamranMaqbool I sometimes see this, especially when moving between different branches that have different dependency versions, sharp seems especially vulnerable to this.
To resolve I do (with yarn):
rm -r node_modules/sharp
yarn install --check-files