tabler / tabler-icons

A set of over 5700 free MIT-licensed high-quality SVG icons for you to use in your web projects.
https://tabler.io/icons
MIT License
18.35k stars 921 forks source link

Gatsby problem #511

Closed mouayed-keziz closed 11 months ago

mouayed-keziz commented 1 year ago

so im using gatsby js with mantine ui, after installing tabler-icons, i tried running the local development server and it didnt work (there is an issues with the package ive added (tabler-icons), and when i remove it everything goes ok as it was,

this was the error from the terminal ` ERROR UNKNOWN

Module not found: Error: Package path . is not exported from package C:\Users\mouayed\Desktop\my-gatsby-site\node_modules\@tabler\icons (see
exports field in C:\Users\mouayed\Desktop\my-gatsby-site\node_modules\@tabler\icons\package.json)

ModuleNotFoundError: Module not found: Error: Package path . is not exported from package C:\Users\mouayed\Desktop\my-gatsby-site\node_modul es\@tabler\icons (see exports field in C:\Users\mouayed\Desktop\my-gatsby-site\node_modules\@tabler\icons\package.json)

not finished Building development bundle - 34.154s`

kicaj commented 1 year ago

Show file where you are loading tabler-icons.

codoffer commented 1 year ago

Same issue with Next.jS

wnederhof commented 1 year ago

Can confirm with Next.js. Not sure what has changed, but downgrading to 2.2.0 fixes the issue.

codecalm commented 1 year ago

@SyntaxJoker look at this please

SyntaxJoker commented 1 year ago

This error can occur if you have something wrong in icon import in case of gatsby you can use @tabler/icons-react package and import icon like in the docs example: https://tabler.io/docs/icons/react

github-actions[bot] commented 11 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.