Open neural9 opened 1 year ago
Use @tabler/icons-react
package instead
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';
I don't know if your issue's resolved, but running npm upgrade --save
solved the problem for me.
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