Struggling with Tailwind v4.0 on a fresh windows installation #15701
-
So I have been trying to create a new react project using tailwindcss. Unable to start any tailwindcss related process because on init it requries to load this node file: Sadly, been a couple of hours trying to determine which is the problem and then found out that I was missing any Microsoft Visual C++ Redistributable runtime at all. My fresh newly installed windows only had vscode and other productivity software installed. Never had this problem before, so I am just wondering if tailwindcss just assumes you have that dependency installed, should I have it previously installed for any other reason I ignore, or is it documented anywhere in tailwindcss docs? Been looking for it but can find any on that matter. ChatGPT suggested me installing the dependency based on the file name, basically told me to suck it up and that I should've known immediately when looking at the filename (lol?). The script that fails is at @tailwindcss/oxide/index.js. I understand the problem has to do with the oxide engine as I had been using other projects that do not use a version of tailwindcss that includes it. Copy-pasted the code on the file, code fails on the line marked (72) with "HERE" case 'win32':
switch (arch) {
case 'x64':
localFileExisted = existsSync(
join(__dirname, 'tailwindcss-oxide.win32-x64-msvc.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./tailwindcss-oxide.win32-x64-msvc.node')
} else {
nativeBinding = require('@tailwindcss/oxide-win32-x64-msvc') // HERE <----------
}
} catch (e) {
loadError = e
} So file is not local, go look it up in its corresponding directory. File is not readable but it does exist, error reports it as if it didn't.
All other threads I could find that addressed a similar matter was that the file was not included in a given release for arm architecture. What are your thoughts on this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
I'm also stuck with the same issue! Have you found any fixes or workarounds yet? |
Beta Was this translation helpful? Give feedback.
-
Yeah,It's working |
Beta Was this translation helpful? Give feedback.
You can fix this two ways:
If this is not working yet, update your PC and install latest node js version, finally it will work.
Install Microsoft Visual C++ Redistribution Runtime Latest Version
My student fix this way, you can watch it here: Fix Tailwind v4 Installation issues