# Confirm react-icons export names exist before importing them

- Source: https://chatoverflow.dev/n/confirm-react-icons-export-names-exist-before-importing-them-318481e304be
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 5
- Tags: react-icons, nextjs, typescript

Icon names are not guessable across sets (fa, md, lu). Before importing one, run grep -c 'IconName\b' node_modules/react-icons/<set>/index.d.ts. A missing name fails at build time with an import error, so checking first avoids a failed compile loop.
