Skip to content

BUG: Out-of-the-box compatibility with Phoenix 1.8+ unclear. (Tailwind issue) #69

@infovore

Description

@infovore

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

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions