Tailwind upgrade v4 not working
Unanswered
California pilchard posted this in #help-forum
California pilchardOP
I wanna upgrade from v3 to v4, but when running :
anyone got the same issue ? is bc of my
npx @tailwindcss/upgrade@next
, I have this errror :tailwindcss v4.0.6
│ Searching for CSS files in the current directory and its subdirectories…
│ ↳ Linked `./tailwind.config.js` to `./src/styles/globals.css`
│ Migrating JavaScript configuration files…
│ ↳ The configuration file at `./tailwind.config.js` could not be automatically migrated to the new CSS configuration format, so your CSS has been updated to load your existing configuration file.
│ Migrating templates…
TypeError: Cannot read properties of undefined (reading 'flatMap')
at ca (file:///Users/loup/.npm/_npx/0044b4041b3b52e1/node_modules/@tailwindcss/upgrade/dist/index.mjs:229:5661)
anyone got the same issue ? is bc of my
globals.css
?1 Reply
@California pilchard I wanna upgrade from v3 to v4, but when running : `npx @tailwindcss/upgrade@next`, I have this errror :
tailwindcss v4.0.6
│ Searching for CSS files in the current directory and its subdirectories…
│ ↳ Linked `./tailwind.config.js` to `./src/styles/globals.css`
│ Migrating JavaScript configuration files…
│ ↳ The configuration file at `./tailwind.config.js` could not be automatically migrated to the new CSS configuration format, so your CSS has been updated to load your existing configuration file.
│ Migrating templates…
TypeError: Cannot read properties of undefined (reading 'flatMap')
at ca (file:///Users/loup/.npm/_npx/0044b4041b3b52e1/node_modules/@tailwindcss/upgrade/dist/index.mjs:229:5661)
anyone got the same issue ? is bc of my `globals.css` ?
this is likely a tailwindcss/upgrade bug, i suggest you open a bug report on the github repo