gpt4 book ai didi

reactjs - 找不到模块 : Can't resolve '@emotion/react'

转载 作者:行者123 更新时间:2023-12-03 18:34:05 26 4
gpt4 key购买 nike

我要安装neumorphism-react包裹。
但我得到了这个错误

Module not found: Can't resolve '@emotion/react' in'C:\Users\Asus\Desktop\reactprojects\visitor\node_modules@emotion\styled\base\dist'


这是 package.json 中的依赖项
"@emotion/core": "^11.0.0",
"@emotion/styled": "^11.0.0",
"@testing-library/jest-dom": "^5.11.6",
"@testing-library/react": "^11.2.2",
"@testing-library/user-event": "^12.6.0",
"neumorphism-react": "^1.1.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-scripts": "4.0.1",
"semantic-ui-react": "^2.0.1",
"web-vitals": "^0.2.4"

最佳答案

我有一个类似的问题,我通过调用解决了它:

npm install @emotion/react
或者
yarn add @emotion/react

关于reactjs - 找不到模块 : Can't resolve '@emotion/react' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65486256/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com