Skip to content

vite+tailwincss is not working for me #19974

@dipakdeshmukh9

Description

@dipakdeshmukh9

**What version of Tailwind CSS are you using?**v4.2.4

What build tool (or framework if it abstracts the build tool) are you using? = vite 8.0.10

What version of Node.js are you using?
24.12.0

What browser are you using?
Chrome

What operating system are you using?
Windows

Reproduction URL

i just created using vite and configure tailwind in that

Describe your issue

Describe the problem you're seeing, any important steps to reproduce and what behavior you expect instead.

this is error is occuring just validating taiwind

PS C:\Users\dipak\Desktop\devTinder-web> npm run dev

devtinder-web@0.0.0 dev
vite

failed to load config from C:\Users\dipak\Desktop\devTinder-web\vite.config.js
error when starting dev server:
Error: Cannot find native binding. npm has a bug related to optional dependencies (npm/cli#4828). Please try npm i again after removing both package-lock.json and node_modules directory.
at Object. (C:\Users\dipak\Desktop\devTinder-web\node_modules@tailwindcss\oxide\index.js:559:11)
at Module._compile (node:internal/modules/cjs/loader:1761:14)
at Object..js (node:internal/modules/cjs/loader:1893:10)
at Module.load (node:internal/modules/cjs/loader:1481:32)
... 2 lines matching cause stack trace ...
at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)
at loadCJSModuleWithModuleLoad (node:internal/modules/esm/translators:339:3)
at ModuleWrap. (node:internal/modules/esm/translators:242:7)
at ModuleJob.run (node:internal/modules/esm/module_job:413:25) {
[cause]: Error: An Application Control policy has blocked this file.
\?\C:\Users\dipak\Desktop\devTinder-web\node_modules@tailwindcss\oxide-win32-x64-msvc\tailwindcss-oxide.win32-x64-msvc.node
at Object..node (node:internal/modules/cjs/loader:1920:18)
at Module.load (node:internal/modules/cjs/loader:1481:32)
at Module._load (node:internal/modules/cjs/loader:1300:12)
at TracingChannel.traceSync (node:diagnostics_channel:328:14)
... 2 lines matching cause stack trace ...
at require (node:internal/modules/helpers:152:16)
at requireNative (C:\Users\dipak\Desktop\devTinder-web\node_modules@tailwindcss\oxide\index.js:131:25)
at Object. (C:\Users\dipak\Desktop\devTinder-web\node_modules@tailwindcss\oxide\index.js:526:17)
at Module._compile (node:internal/modules/cjs/loader:1761:14) {
code: 'ERR_DLOPEN_FAILED',
cause: Error: Cannot find module './tailwindcss-oxide.win32-x64-msvc.node'
Require stack:
- C:\Users\dipak\Desktop\devTinder-web\node_modules@tailwindcss\oxide\index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1421:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1059:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1064:22)
at Module._load (node:internal/modules/cjs/loader:1227:37)
at TracingChannel.traceSync (node:diagnostics_channel:328:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)
at Module.require (node:internal/modules/cjs/loader:1504:12)
at require (node:internal/modules/helpers:152:16)
at requireNative (C:\Users\dipak\Desktop\devTinder-web\node_modules@tailwindcss\oxide\index.js:126:16)
at Object. (C:\Users\dipak\Desktop\devTinder-web\node_modules@tailwindcss\oxide\index.js:526:17) {
code: 'MODULE_NOT_FOUND',
requireStack: [Array]
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions