You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What build tool (or framework if it abstracts the build tool) are you using?
Vite ^5.0
What version of Node.js are you using?
v18.20.4
What browser are you using?
N/A
What operating system are you using?
macOS 15.1 (24B83)
Reproduction URL
N/A
Describe your issue
Upgrade tool linked tailwind.config.js file via the @config at-rule, but simultaneously removed the file. This resulted in [plugin:vite:css] [postcss] Can't resolve '../../tailwind.config.js' in '[path]/resources/css' error.
≈ tailwindcss v4.0.0-beta.2
│ Searching for CSS files in the current directory and its subdirectories…
│ ↳ Linked `./tailwind.config.js` to `./resources/css/app.css`
│ Migrating JavaScript configuration files…
│ ↳ Migrated configuration file: `./tailwind.config.js`
│ Migrating templates…
│ ↳ Migrated templates for configuration file: `./tailwind.config.js`
│ Migrating stylesheets…
│ ↳ f.toSorted is not a function in `./public/vendor/horizon/app-dark.css`
│ ↳ f.toSorted is not a function in `./public/vendor/horizon/app.css`
│ ↳ f.toSorted is not a function in `./resources/ckeditor5/sample/styles.css`
│ ↳ f.toSorted is not a function in `./resources/css/components/common.css`
│ ↳ f.toSorted is not a function in `./resources/css/third-party/vue-datepicker.css`
│ ↳ f.toSorted is not a function in `./resources/css/app.css`
│ ↳ Migrated stylesheet: `./resources/css/app.css`
│ Migrating PostCSS configuration…
│ ↳ Installed package: `@tailwindcss/postcss`
│ ↳ Removed package: `autoprefixer`
│ ↳ Removed package: `postcss-import`
│ ↳ Migrated PostCSS configuration: `./postcss.config.js`
│ Updating dependencies…
│ ↳ Updated package: `tailwindcss`
│ Verify the changes and commit them to your repository.
The text was updated successfully, but these errors were encountered:
You don't have to upgrade all your app to use Node 20, just your local environment need to temporarily run Node 20 to be able to run the Upgrade tool. Unfortunately this is a requirement, as Node 20 is the current LTS support version and we rely on some APIs introduced in this version.
I got your invite btw but I haven't had the time to look into it yet. It would be awesome if you can help reduce this down to a minimal reproduction case!
What version of Tailwind CSS are you using?
Pre-update:
^3.4.1
Post-update:
^4.0.0-beta.2
(via upgrade tool)What build tool (or framework if it abstracts the build tool) are you using?
Vite
^5.0
What version of Node.js are you using?
v18.20.4
What browser are you using?
N/A
What operating system are you using?
macOS 15.1 (24B83)
Reproduction URL
N/A
Describe your issue
Upgrade tool linked
tailwind.config.js
file via the@config
at-rule, but simultaneously removed the file. This resulted in[plugin:vite:css] [postcss] Can't resolve '../../tailwind.config.js' in '[path]/resources/css'
error.Main CSS before:
Main CSS after:
The upgrade tool's log:
The text was updated successfully, but these errors were encountered: