ui.mantine.dev icon indicating copy to clipboard operation
ui.mantine.dev copied to clipboard

TablerIcons 2.0 breaks UI navigation components

Open neural9 opened this issue 3 years ago • 3 comments

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

neural9 avatar Feb 18 '23 17:02 neural9

Use @tabler/icons-react package instead

rtivital avatar Feb 18 '23 17:02 rtivital

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

soeasyjx avatar Feb 21 '23 07:02 soeasyjx

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

henrymcl avatar Jul 11 '24 04:07 henrymcl