#[pluginvitecss] error when running vite in sub directory

1 messages · Page 1 of 1 (latest)

solemn crown
#

I have this file structure

└── my-lib/
    ├── playground/
    │   ├── {vue project files}
    │   ├── package.json
    │   └── vite.config.ts
    ├── src/
    │   ├── components
    │   └── index.ts  
    ├── vite.config.js
    ├── tailwind.config.js
    └── postcss.config.js

and when I cd playground and run npm run dev
I get this error and I do not have postcss at the directory that I am running vite inside
[plugin:vite:css] [postcss] Cannot read properties of undefined (reading 'config')
is there something I am doing wrong?

sacred mountain
#

hello, did you run it at windows? what version of vite? I'm asking because it looks similar to my problem with vue+sass+modules

#

last version of vite without problems was for me 3.0.9

solemn crown
#

hi @sacred mountain no, I run it on macOS, vite:3.1.0