reactjs - 使用 React 图标时未找到模块错误
问题描述
我正在学习 Lynda 的 Learning React 课程。在第 4 章的第一个视频中,我遇到了一个问题。当我在 Git Bash 上输入 npm start 时,显示以下错误:
> bulletin-board@0.1.0 start C:\Users\John\Desktop\Ex_Files_Learning_Reactjs\Files\Ch04\04_01\start\bulletin-board
> react-scripts start
The `setup` option is deprecated and will be removed in v3. Please update your config to use `before`
Starting the development server...
Failed to compile.
./src/Note.js
Module not found: Can't resolve 'react-icons/lib/fa/pencil' in 'C:\Users\John\Desktop\Ex_Files_Learning_Reactjs\Files\Ch04\04_01\start\bulletin-board\src'
我尝试使用与我的问题相关的 Stack Overflow 问题中显示的解决方案数量。但它们对我不起作用。
我被卡住了,如果不修复它就无法继续学习。
解决方案
推荐阅读
- ruby - 无法在 ubuntu 上安装依赖项
- javascript - 向客户视图显示交易 ID
- c++ - 向下转换为孙子类,具有私有继承
- javascript - Angular 8,在服务器上部署后,刷新/重新加载显示 404 页面未找到
- substrate - 签名未得到验证
- android - Android Studio Emulator 扩展控件中没有 Google Maps UI
- webpack - Webpack:如何将单个类导出为 UMD 库?
- c - 试图让 C 函数计算一个数字出现了多少次,每次返回相同的值
- database - 更新字段和值 mongoDB
- docker - 无法在 Ubuntu 仿生上运行 docker 守护进程