首页 > 解决方案 > 使用 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 问题中显示的解决方案数量。但它们对我不起作用。

我被卡住了,如果不修复它就无法继续学习。

标签: reactjs

解决方案


推荐阅读