前提・実現したいこと
create-react-appでmaterialUIやemotionなどのpackageをインストールして活用したい。
発生している問題・エラーメッセージ
install自体はちゃんとできているようですが、importの時点で不備があるようです。
./node_modules/@emotion/core/node_modules/@babel/runtime/helpers/inheritsLoose.js Module build failed: Error: ENOENT: no such file or directory, open '/Users/masaya/reactapp/node_modules/@emotion/core/node_modules/@babel/runtime/helpers/inheritsLoose.js'
該当のソースコード
import React from "react"; import styled from "@emotion/styled"; import Button from "@material-ui/core/Button"; const InputWrapper = styled("div")` margin: 20px 0; `; const TextInput = styled("input")` width: 250px; height: 20px; margin-right: 30px; `; const AddButton = styled(Button)``; const InputSection = () => ( <InputWrapper> <TextInput placeholder="入力してください" /> <AddButton variant="contained" color="primary"> 計算する </AddButton> </InputWrapper> ); export default InputSection;
試したこと
package.jsonからmaterialUIとemotionを削除して、installをし直しましたが、同じエラーが出ていました。
コード
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。