首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >找不到模块:无法在node_modules\@emotion\styled\base\dist中解析“@ resolve /react”

找不到模块:无法在node_modules\@emotion\styled\base\dist中解析“@ resolve /react”
EN

Stack Overflow用户
提问于 2021-11-10 08:58:13
回答 1查看 1.8K关注 0票数 0

我尝试了npm install @emotion/reactnpm install @emotion/styled解决方案,但未清除错误。

热心的帮助

代码语言:javascript
复制
 "dependencies": {
    "@emotion/styled": "^11.3.0",
    "@material-ui/core": "^4.12.3",
    "@mui/material": "^5.1.0",
    "@testing-library/jest-dom": "^5.15.0",
    "@testing-library/react": "^11.2.7",
    "@testing-library/user-event": "^12.8.3",
    "axios": "^0.24.0",
    "chart.js": "^3.6.0",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-scripts": "4.0.3",
    "web-vitals": "^1.1.2"
  },
EN

回答 1

Stack Overflow用户

发布于 2021-11-10 09:02:13

您没有正确安装npm包,因此,请尝试使用此命令重新安装它们,这些包在package.json中缺失,未正确安装

代码语言:javascript
复制
npm install @emotion/styled 
npm install @emotion/core
npm install @emotion/styled

或者尝试使用--save标志安装它们

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69910311

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档