Closed kylerits closed 3 years ago
So this isn't really an issue with the Vite plugin, this is going to be a permissions issue with whatever your local dev environment is imo.
Post your config please?
And also information about your local dev environment.
This problem is easy to solve prefixeing the path with a . like so: './web' or './public_html'
Ah, I must have missed that then cleaning up the paths, thanks @Tim-Wils -- I updated the article.
@kylerits change it to:
outDir: './web/dist/',
(or whatever the relative path to your public web
dir is) in your vite.config.js
file
Beautiful. That did it. Thank you.
Question
I'm not sure if this is more appropriate to address here or on the Vite repo, but I am having an issue with permissions when running the build script. I am not able to build out any folders during build be it 'dist' or any other that I've tested. I am getting an
EACCES: permission denied, mkdir '/web'
error. Have you run into this before? Is the issue more with Vite or Rollup or my environment?Additional context
Add any other context or screenshots about the support request here.
I am running the site locally using Laravel valet. I have created a new branch of my starter template that had previously functioned using Webpack and Mix. Running through your blog post I ran into the previously mentioned road block.
Full error: