LoginSignup
0

More than 1 year has passed since last update.

React Iconsが正常に表示されているのにデプロイ時にエラーが出る件

Posted at

Next.jsでページ作ってVercelでデプロイしようとしたら下記のようなエラーが表示された。

Type error: Cannot find module 'react-icons/Bs' or its corresponding type declarations.

該当箇所はこんな感じ。

import { BsTwitter, BsInstagram } from "react-icons/Bs";

アイコンも正常に表示されているしどうしたものか…と思っていたら正しくは↓だった。最後は小文字らしい。

import { BsTwitter, BsInstagram } from "react-icons/bs";

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0