-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Phoenix 1.8+ has moved to using Tailwind 4, which makes some major changes to TW3, not least in how it's configured and processed. The default CSS and config supplied with Phoenix 1.8 assumes Tailwind 4; however, mix live_vue.setup
installs TW ^3.4.3
and as a result, asset-building fails.
Actual Behavior
vite v5.4.19 building for production...
transforming...
✓ 17 modules transformed.
x Build failed in 243ms
error during build:
[vite:css] [postcss] postcss-import: /path/to/live_vue_phx/assets/node_modules/tailwindcss/lib/index.js:1:1: Unknown word "use strict"
Expected Behavior
Assets to correctly compile.
Environment
LiveVue: 0.7.2
Phoenix: 1.8.0
Phoenix LiveView: 1.1.4
Elixir: 1.18.3
Node: v22.11.0
Npm: 10.9.0
Vue:
# Paste the output here
Operating system: MacOS Sonoma (14.x)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working