import logo from "./logo.svg";
import "./App.css";
import { FiAirplay } from "react-icons/all";
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer">
Learn React
</a>
</header>
</div>
);
}
export default App;
error: Failed to compile.
./node_modules/react-icons/ai/index.esm.js Module not found: Can't resolve '../lib'
please what am i doing wrong?,
well your import statement is wrong..must be vs code autocomplete feature as i always get this.
import { FiAirplay } from "react-icons/fi";
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.