Replies: 1 comment 1 reply
-
|
Update
I am now seeing a new error, some progress 🤔 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Current architecture for v3 Tailwind
postcss.config.js,tailwind.config.jsandvite.config.mtsconfig files{ "dependencies": { "pinia": "^2.2.1", "primevue": "^4.3.3", "single-spa": "^6.0.1", "single-spa-layout": "^2.2.0", "single-spa-vue": "^3.0.0", "tailwind-merge": "^2.4.0", "tailwindcss-animate": "^1.0.7", "vue": "^3.5.13", "vue-router": "^4.4.3" }, "devDependencies": { "@nx/cypress": "19.4.2", "@nx/devkit": "19.4.2", "@nx/eslint": "19.4.2", "@nx/eslint-plugin": "19.4.2", "@nx/js": "19.4.2", "@nx/playwright": "19.4.2", "@nx/storybook": "^19.5.7", "@nx/vite": "19.4.2", "@nx/vue": "19.4.2", "@nx/web": "19.4.2", "@nx/workspace": "19.4.2", "@vitejs/plugin-vue": "^5.1.2", "@vue/eslint-config-prettier": "9.0.0", "@vue/eslint-config-typescript": "^13.0.0", "@vue/test-utils": "^2.4.6", "autoprefixer": "10.4.13", "nx": "19.4.2", "postcss": "8.4.41", "tailwindcss": "3.2.7", "typescript": "5.8.2", "vite": "~5.4.0", // this is quite out of date!!! "vite-plugin-dts": "~2.3.0", "vite-plugin-single-spa": "^0.6.1", "vite-plugin-vue-devtools": "^7.3.7", "vitest": "1.6.0", "vue-tsc": "^2.2.8" } }v4 upgrade steps
I am seeing NO errors whatsoever, both compilation and runtime. It all seems to be failing silently. My local dev environment runs fine but my app is now completely unstyled. The browser is not loading any tailwind related CSS at all it seems.
upgradetool but it didn't appear to find mybase.scssand simply upgrade the dependencies. The only changes added were inpackage.jsontailwindcss/vitein myapp/css/vite.config.mts(we have an entire microfrontend for serving our monolithic CSS for dev, for hot reload reasons)postcssentirelytailwind.config.jsand use@themeinside mybase.scss(I also tried the@config '../tailwind.config.jsapproach)@import 'tailwindcss' source('../../*')and multiple@sourcedeclarations all mimicking what was in mycontent: []in the old tailwind JS config. Still no luck@import 'tailwindcss'module could not be found. Not entirely sure what that tells me apart from the obvious.I have read hours worth of issues and discussions on this topic and feel like I have exhausted my options. My conclusion is that my particular setup is still expecting a CSS in JS pipeline and that v4 has changed their philosophy in bringing everything back to CSS first (which I do like FYI).
I am sure you can appreciate this would be very difficult to replicate in a repo, so I hope I have given enough context and someone in a similar situation has some lessons learned or tips. Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions