mantinedev / mantinedev/ui.mantine.dev

The Tabler 3.31.0 is breaking the project with vite

Open
#113 4 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.9k
Forks
364
PR merge metrics
No merged PRs in 30d

Description

I found a problem using the Tabler lib; The site just didn't open.

![Image](https://github.com/user-attachments/assets/88f4cd83-4e19-4187-b06f-987da7d41dd0)

I found the same problem and a partial solution in this other issue:

https://github.com/tabler/tabler-icons/issues/1233#issue.

The solution that worked for me was:

https://github.com/tabler/tabler-icons/issues/1233#issuecomment-2430687347.

```
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
// /esm/icons/index.mjs only exports the icons statically, so no separate chunks are created
'@tabler/icons-react': '@tabler/icons-react/dist/esm/icons/index.mjs',
},
},
})
```

Wouldn't it be better to change the icon library for this project? Maybe to react-icons or heroicons? Or add some other configuration and inform it in the documentation?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the site startup failure with Tabler 3.31.0 and review the Vite configuration shown in the issue, then compare the linked tabler-icons issue and workaround. Done means the project opens with the supported icon setup and the required configuration or library decision is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript, vite
Domain
build-system, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.