Replies: 2 comments 2 replies
|
What's your migration process? |
|
@GgFred I'll echo what @TazorDE was asking above and make sure you've consulted our guides here:
You should only need to follow one of these based whether you started on v2 or v3. Make sure you follow the guide very closely - as we provide tips for avoiding scenarios where you might have outdated component throwing errors: And for Tailwind issues like this specifically, make sure you're avoiding the use of Tailwind in Svelte Additionally, make sure you're avoiding the use of |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I’m currently stuck while migrating a project to Svelte 5.45.2, Tailwind CSS 4.1.17, and Skeleton UI 4.6.1. I’ve successfully migrated other projects, but this one is giving me persistent build and formatting errors.
I’m upgrading a project to:
Before:
frederic@frederic-ThinkStation-P620:~/dev/myproject/frontend$ npm list frontend@0.0.1 /home/frederic/dev/myproject/frontend ├── @floating-ui/dom@1.7.4 ├── @jamescoyle/svelte-icon@0.1.1 ├── @mdi/js@7.4.47 ├── @skeletonlabs/skeleton@2.11.0 ├── @skeletonlabs/tw-plugin@0.4.1 ├── @sveltejs/adapter-static@3.0.10 ├── @sveltejs/kit@2.49.0 ├── @sveltejs/vite-plugin-svelte@3.1.2 ├── @types/eslint@9.6.1 ├── @types/node@22.19.1 ├── @types/uuid@10.0.0 ├── @typescript-eslint/eslint-plugin@8.48.0 ├── @typescript-eslint/parser@8.48.0 ├── @xyflow/svelte@0.1.39 ├── autoprefixer@10.4.22 ├── eslint-config-prettier@9.1.2 ├── eslint-plugin-svelte@2.46.1 ├── eslint@9.39.1 ├── i18next@23.16.8 ├── postcss@8.5.6 ├── prettier-plugin-svelte@3.4.0 ├── prettier-plugin-tailwindcss@0.6.14 ├── prettier@3.7.1 ├── split.js@1.6.5 ├── svelte-check@4.3.4 ├── svelte-headless-table@0.18.3 ├── svelte-i18next@2.2.2 ├── svelte@4.2.20 ├── tailwindcss@3.4.18 ├── tslib@2.8.1 ├── typescript@5.9.3 ├── uuid@10.0.0 └── vite@5.4.21After:
frederic@frederic-ThinkStation-P620:~/dev/myproject/frontend$ npm list frontend@0.0.1 /home/frederic/dev/myproject/frontend ├── @floating-ui/dom@1.7.4 ├── @humanspeak/svelte-headless-table@6.0.1 ├── @jamescoyle/svelte-icon@0.1.1 ├── @mdi/js@7.4.47 ├── @skeletonlabs/skeleton-svelte@4.6.1 ├── @skeletonlabs/skeleton@4.6.1 ├── @skeletonlabs/tw-plugin@0.4.1 ├── @sveltejs/adapter-static@3.0.10 ├── @sveltejs/kit@2.49.0 ├── @sveltejs/vite-plugin-svelte@6.2.1 ├── @tailwindcss/forms@0.5.10 ├── @tailwindcss/typography@0.5.19 ├── @tailwindcss/vite@4.1.17 ├── @types/node@22.19.1 ├── @types/uuid@10.0.0 ├── @xyflow/svelte@1.4.2 ├── autoprefixer@10.4.22 ├── i18next@24.2.3 ├── postcss-load-config@5.1.0 ├── postcss@8.5.6 ├── prettier-plugin-organize-imports@4.3.0 ├── prettier-plugin-svelte@3.4.0 ├── prettier-plugin-tailwindcss@0.7.1 ├── prettier@3.7.1 ├── split.js@1.6.5 ├── svelte-check@4.3.4 ├── svelte-i18next@2.2.2 ├── svelte@5.45.2 ├── tailwindcss@4.1.17 ├── tslib@2.8.1 ├── typescript@5.9.3 ├── uuid@10.0.0 └── vite@6.4.1Build Error:
When running npm run build, I get:
[@tailwindcss/vite:generate:build] Cannot use
@variantwith unknown variant: mdfile: /home/frederic/dev/myproject/frontend/node_modules/@skeletonlabs/skeleton/dist/index.css
Prettier Errors:
Running npm run format fails with:
TypeError: getVisitorKeys is not a function or its return value is not iterable
I’ve tried to:
Has anyone encountered and resolved these specific issues during migration?
If you’ve successfully migrated a similar stack (Svelte 5 + Tailwind 4 + Skeleton 4) or have deep knowledge of these tools, I’d love your help to:
@varianterror in Skeleton UIAny insights or pointers would be greatly appreciated.
build.log
format.log
All reactions