Closed
Description
Tailwind: v3.3.2
Vite: v4.3.9
React: v18.2.0
Node: v19.0.0
Browser: Chrome
OS: Windows
pnpm: V8.6.5
Reproduction URL: https://github.com/talkohavy/vite-tailwind-bug
Describing the issue
All I did was simply create a new vite project, with react, and follow your documentation on how to add tailwind.
The steps being:
- npm create vite@latest my-project -- --template react
- cd my-project
- code .
- pnpm add -D tailwindcss postcss autoprefixer
- npx tailwindcss init -p
- add content to tailwind.config.js:
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
], - add to index.css these lines:
@tailwind base;
@tailwind components;
@tailwind utilities; - run the command: npm run dev
After doing all that, when I run the start script of npm run dev
, I open up the brower to see the app,
and get this error:
[plugin:vite:css] [postcss] Cannot create property '*******\my-project\tailwind.config.js' on string '*****/AppData/Local/Temp/node-jiti'
Metadata
Metadata
Assignees
Labels
No labels