Tailus-UI / themer

Tailwind CSS Styling Library for Building Modern, Consistent and Accessible Web UIs
https://ui.tailus.io/themer/get-started/introduction/
MIT License
114 stars 7 forks source link

Cannot find module 'tailwind-variants/dist/config' #15

Open nghyane opened 4 months ago

nghyane commented 4 months ago

When build i get this error, how can fix it :(

node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/visualizations/tooltip.d.ts:91:22 - error TS2307: Cannot find module 'tailwind-variants/dist/config' or its corresponding type declarations.

91 }, undefined, import("tailwind-variants/dist/config").TVConfig<{
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 159 errors in 30 files.

Errors  Files
     2  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/accordion.d.ts:37
     2  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/aligner.d.ts:5
     4  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/annonce.d.ts:14
    15  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/avatar.d.ts:1
    14  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/badge.d.ts:8
     2  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/banner.d.ts:23
    19  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/button.d.ts:29
     2  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/calendar.d.ts:68
     4  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/card.d.ts:11
     5  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/checkbox.d.ts:9
     2  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/dialog.d.ts:17
     2  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/drawer.d.ts:34
     2  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/form.d.ts:66
    12  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/menu.d.ts:41
     2  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/popover.d.ts:16
     2  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/progress.d.ts:182
     5  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/radio.d.ts:23
     3  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/scrollArea.d.ts:13
    12  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/select.d.ts:40
     2  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/separator.d.ts:12
     2  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/slider.d.ts:69
     5  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/switch.d.ts:24
     2  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/tabs.d.ts:83
     2  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/toast.d.ts:22
     2  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/toggle.d.ts:68
     2  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/tooltip.d.ts:17
    19  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/typography.d.ts:14
     4  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/visualizations/area.d.ts:12
     6  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/visualizations/index.d.ts:1
     2  node_modules/.pnpm/@tailus+themer@0.1.6_tailwindcss@3.4.4/node_modules/@tailus/themer/dist/components/visualizations/tooltip.d.ts:23
nghyane commented 4 months ago

I temporarily fixed it by adding to tsconfig.json

{
  "skipLibCheck": true,
  ...
}