ui.mantine.dev
ui.mantine.dev copied to clipboard
TablerIcons 2.0 breaks UI navigation components
The error that occurs is:
[plugin:vite:import-analysis] Failed to resolve entry for package "@tabler/icons". The package may have incorrect main/module/exports specified in its package.json: Missing "." specifier in "@tabler/icons" package
Use @tabler/icons-react package instead
Use
@tabler/icons-reactpackage instead
I Use @tabler/icons-react package instead in gatsby ,And it didn't work out.
node verson v18.14.1
package.json
{
"dependencies":{
……
"@tabler/icons-react": "^2.4.0",
……
}
}
index.tsx
import {
IconNotes,
IconCalendarStats,
IconGauge,
IconPresentationAnalytics,
IconFileAnalytics,
IconAdjustments,
IconLock,
} from '@tabler/icons-react';
I don't know if your issue's resolved, but running npm upgrade --save solved the problem for me.