Fails to deploie a website with illegal operation on a directory, read

Hi there I’m asking for a building topinc on netlify
I have few errors during the main building and I don’t know why, I’m triyng to deploy aa website using vite vue js and tailwindcss and I have these errors :

error during build:
** Error: EISDIR: illegal operation on a directory, read**
If you have some ideas to avoid it please feel free to answer !
Thank you in advance

Please provide some important information like your site name to start with.

for sure my website name is fantastic-klepon-ec4501
I have few other errors but with forum answers it don’t work :
[vite:build-html] EISDIR: illegal operation on a directory, read
7:00:23 PM: file: /opt/build/repo/index.html
7:00:23 PM: error during build:
7:00:23 PM: Error: EISDIR: illegal operation on a directory, read
7:00:23 PM: ERROR: “build-only” exited with 1.
7:00:23 PM: ​
7:00:23 PM: “build.command” failed
7:00:23 PM: ────────────────────────────────────────────────────────────────
7:00:23 PM: ​
7:00:23 PM: Error message
7:00:23 PM: Command failed with exit code 1: npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
7:00:23 PM: ​
7:00:23 PM: Error location
7:00:23 PM: In Build command from Netlify app:
7:00:24 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)

the deploy is with a npm run build

Look like a Vite.js issue: [vite:build-html] EISDIR: illegal operation on a directory, read · Issue #4030 · vitejs/vite · GitHub

yes vite doesn’t work for any deploy I have to do my routes manualy without it :frowning:
thanks for your help !