Skip to content

The Tabler 3.31.0 is breaking the project with vite #113

@ericssendelima

Description

@ericssendelima

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

Image

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

tabler/tabler-icons#1233 (comment).

The solution that worked for me was:

tabler/tabler-icons#1233 (comment).

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions