unplugin / unplugin-icons

🤹 Access thousands of icons as components on-demand universally.
https://www.npmjs.com/package/unplugin-icons
MIT License
3.66k stars 131 forks source link

Unable to resolve path to module - Nextjs #296

Open iamshour opened 11 months ago

iamshour commented 11 months ago

Describe the bug

I followed all the steps to make this Icons library work within my setup (Nextjs application), however I'm getting an Eslint error that says: Unable to resolve path to module '~icons/dashicons/arrow-right.jsx'.eslint[import/no-unresolved](https://github.com/import-js/eslint-plugin-import/blob/v2.27.5/docs/rules/no-unresolved.md) module "~icons/*"

Reproduction

Error with Nextjs 13

System Info

Ubuntu 22.0

Used Package Manager

pnpm

Validations