Vite + React template internal server error

when running npm run dev on the Vite + react framework template from cloudflare I get a "failed to load PostCSS config" error. the exact message is:
[plugin:vite:css] Failed to load PostCSS config (searchPath: C:/Users/Fluff/Desktop/ViteReact/portfolio): [Error] EISDIR: illegal operation on a directory, read
Error: EISDIR: illegal operation on a directory, read
at async readFileHandle (node:internal/fs/promises:557:24)
at async Object.search (file:///C:/Users/Fluff/Desktop/ViteReact/portfolio/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:8245:30)
C:/Users/Fluff/Desktop/ViteReact/portfolio/src/index.css
[plugin:vite:css] Failed to load PostCSS config (searchPath: C:/Users/Fluff/Desktop/ViteReact/portfolio): [Error] EISDIR: illegal operation on a directory, read
Error: EISDIR: illegal operation on a directory, read
at async readFileHandle (node:internal/fs/promises:557:24)
at async Object.search (file:///C:/Users/Fluff/Desktop/ViteReact/portfolio/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:8245:30)
C:/Users/Fluff/Desktop/ViteReact/portfolio/src/index.css
I have tried a few different methods for getting the template up (from cloning the template repo to using npm create cloudflare) and I still get the same issues. This issue also happens with other cloudflare worker templates. Am I missing anything? I can't seem to find any solutions online
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?