Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TablerIcons 2.0 breaks UI navigation components #51

Open
neural9 opened this issue Feb 18, 2023 · 3 comments
Open

TablerIcons 2.0 breaks UI navigation components #51

neural9 opened this issue Feb 18, 2023 · 3 comments

Comments

@neural9
Copy link

neural9 commented Feb 18, 2023

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
Copy link
Member

Use @tabler/icons-react package instead

@soeasyjx
Copy link

soeasyjx commented Feb 21, 2023

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants