-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade tool can't resolve paths on Windows #15220
Comments
@Fedox-die-Ente Hey! Thanks for the bug report, is it possible for you to include a small reproduction case of your repo that contains just the files necessary to make this crash (e.g. your CSS files)? |
Of course, the entire repository is open source. Just exclude things that are not necessary. Would otherwise take some time to filter things out now. |
I'm encountering the same issue with very similar error output:
Environment details:
Relevant configuration files: |
Both pastes expire in
The same happens with npx (npm) |
I'm getting the same issue, I was able to overcome it by installing the upgrade package to the project, executing it, then removing it.
I use Yarn but I imagine it'll work for NPM/PNPM. |
Didn't work for me, i'll wait for an official solution, i guess |
Having upgrade CLI problems here as well. venv➜ desktop git:(john/upgrade-to-tailwind-v4) npx @tailwindcss/upgrade@next
≈ tailwindcss v4.0.0-beta.4
│ Searching for CSS files in the current directory and its subdirectories…
│ ↳ Could not determine configuration file for: `./src/styles.css`
│ Update your stylesheet to use `@config` to specify the correct configuration file explicitly and
│ then run the upgrade tool again.
│ ↳ Could not determine configuration file for: `./node_modules/tailwindcss/base.css`
│ Update your stylesheet to use `@config` to specify the correct configuration file explicitly and
│ then run the upgrade tool again.
│ ↳ Could not determine configuration file for: `./node_modules/tailwindcss/components.css`
│ Update your stylesheet to use `@config` to specify the correct configuration file explicitly and
│ then run the upgrade tool again.
│ ↳ Could not determine configuration file for: `./node_modules/tailwindcss/screens.css`
│ Update your stylesheet to use `@config` to specify the correct configuration file explicitly and
│ then run the upgrade tool again.
│ ↳ Could not determine configuration file for: `./node_modules/tailwindcss/tailwind.css`
│ Update your stylesheet to use `@config` to specify the correct configuration file explicitly and
│ then run the upgrade tool again.
│ ↳ Could not determine configuration file for: `./node_modules/tailwindcss/utilities.css`
│ Update your stylesheet to use `@config` to specify the correct configuration file explicitly and
│ then run the upgrade tool again.
│ ↳ Could not determine configuration file for: `./node_modules/tailwindcss/variants.css`
│ Update your stylesheet to use `@config` to specify the correct configuration file explicitly and
│ then run the upgrade tool again. Adding @config "../../tailwind.config.js"; to Love the new APIs, love the improvements to DX since the first Alpha back in April, good luck with the rollout! |
@johncarmack1984 Your issue seems different from the "could not resolve" path issues so it might be unrelated to this bug report. One quick note here though is that we're looking at the Regarding the other issue: It looks like something in the path is broken for Windows systems. I'll try to see if I can reproduce this on my Windows machine. @Fedox-die-Ente @moleium are you on x64 or Arm? |
@philipp-spiess I'm on x64 Windows with an Intel i5-6200U CPU. |
I work on x64 |
The tool is looking for files in the npx cache folder instead of the project folder. I can confirm that it works with a local install:
|
Was going by thread title and didn't feel this necessitated a new report, especially considering others in this thread are also troubleshooting similar issues.
Our project does indeed have a .gitignore, which does indeed include |
I encountered a similar issue during the upgrade process. This is the error I received: ≈ tailwindcss v4.0.0-beta.4
│ Searching for CSS files in the current directory and its subdirectories…
│ ↳ Linked `./tailwind.config.ts` to `./src/app/globals.css`
│ Migrating JavaScript configuration files…
│ ↳ Could not load the configuration file: undefined is not a function In my case, the issue was caused by an imported Tailwind CSS plugin in my tailwind.config.ts file. When I temporarily removed the plugin, the migration tool worked as expected. If you’re using imported plugins, I recommend commenting them out or removing them during the migration process and re-adding them afterward. I hope this helps anyone facing a similar issue! |
@barabrian This seems like a different issue as well. Mind finding a new bug report together with a reproduction setup so we can debug this issue? Also what version of Node.js are you running on? |
@philipp-spiess Thank you for the clarification and for renaming the issue to make it more specific. I’m currently running Node.js v22.11.0. For context, I was using the tailwind-clip-path plugin (from this repository) in my tailwind.config.ts. |
What version of Tailwind CSS are you using?
For example: v3.4.15
What build tool (or framework if it abstracts the build tool) are you using?
For example: postcss-cli 8.4.41, Vite 5.4.8, autoprefixer 10.4.20
What version of Node.js are you using?
For example: v20.15.0
What browser are you using?
For example: ARC
What operating system are you using?
For example: Windows
Reproduction URL
Execute the
npx @tailwindcss/upgrade@next
commandDescribe your issue
After im trying to execute the command, i get this error:
The text was updated successfully, but these errors were encountered: