未找到语义用户界面反应模块

问题描述 投票:1回答:1

我试图将语义UI添加到我的react项目中。我使用了CDN,并将CDN链接包含在索引文件的标题中。

然后我添加了一个带有语义UI的按钮,然后显示了一个错误

./ src / signupComponent / Signup.js 找不到模块:无法解析'semantic-ui-react'在'/ home / kavindu / Documents / react_projects / ocr_web_app / src / signupComponent'中

然后我通过此代码将语义UI安装到了项目中

npm install semantic-ui-css

但是该问题尚未解决,尽管我安装了语义ui数次。

解决方案是什么?错误尚未解决。

semantic-ui-react
1个回答
0
投票

可以安装

yarn add semantic-ui-react

npm install semantic-ui-react

需要停止服务器并安装软件包。

© www.soinside.com 2019 - 2024. All rights reserved.