Closed fl0wx closed 2 years ago
Same here. Or at least a way to install without the react dependency... I don't use the react components but I use react in my project.
Any updates?
I've tested by forcefully installing @tabler/icons into a React18 project using npm install --force and everything worked fine.
Presumably this would be resolved by updating the peerDependencies specification in the package.json to include 18.x
Also for anyone wanting a hacky solution, you can include a .npmrc
file in your project with the legacy-peer-deps=true
setting, it will cause all your npm installations to ignore peer dependencies.
I'll stress that this is a hacky solution, peer dependencies are often listed for a valid reason - using this hack means you will no longer receive peer dependency warnings/errors for any packages you install
I think its not a problem when you install with npm 14
it crashes Next.js app also 😒
Update for Next.js project: just use yarn I tried to fork this repo and fix peerDependencies with no luck. Yarn works perfect
Kinda disappointing when I saw the error and +1 for this issue. However, I switched to the Webfont version:
Just add
<link rel="stylesheet" href="https://unpkg.com/@tabler/icons@latest/iconfont/tabler-icons.min.css">
and you're good to go.
Please, just add
"peerDependencies": {
"react": "^16.x || 17.x || 18.x",
"react-dom": "^16.x || 17.x || 18.x"
},
to package.json.
It already works when disabling the npm protections (--force), so I assume no problems. It would help alot, thanks!
@codecalm , thanks :)
Hey all,
is there currently a plan for supporting React18?
Thanks and regards fl0wx