mantinedev / ui.mantine.dev

Mantine UI website and components
https://ui.mantine.dev
MIT License
2.81k stars 314 forks source link

TablerIcons 2.0 breaks UI navigation components #51

Open neural9 opened 1 year ago

neural9 commented 1 year ago

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

rtivital commented 1 year ago

Use @tabler/icons-react package instead

soeasyjx commented 1 year ago

Use @tabler/icons-react package 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';
image
henrymcl commented 1 month ago

I don't know if your issue's resolved, but running npm upgrade --save solved the problem for me.