【React】react-shareでのModuleNotFoundErrorが出る時の対処法

2022/11/15に公開

症状

yarn add react-share
or
npm install react-share
gatsby develop

  ModuleNotFoundError: Module not found: Error: 
  Can't resolve '@emotion/styled' in '/****'

結論

npm install @emotion/styled

関連ページ

https://www.chickensblog.com/scratch-cant-make/
https://www.chickensblog.com/laravel-docker/
https://www.chickensblog.com/progate/
https://zenn.dev/teba_eleven/articles/2a36e1241cda8d

参考ページ

https://ufirst.jp/memo/2021/09/mui-にてエラー「module-not-found-cant-resolve-emotion-react-in-node_modules-mui-styine」/

Discussion