Open phil294 opened 1 year ago
Thank you @phil294 . This works.
Very odd but adding the following to package.json
does seem to resolve the issue! I guess it serves as an alternative to postcss.config.js
?
{
...
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
...
}
My Vue project is located in some path using Linux user permissions: The project is at
/home/main_user/projects/my_project
, but I am logged in asanother_user
.$HOME
is/home/another_user
,whoami
yieldsanother_user
. Still, postcss wants to look into/home/main_user/.config/postcssrc
which doesn't make much sense. But since that folder is not readable toanother_user
, the entire build process fails.Version: vue 3.3.3 (latest released). This was NOT yet an issue with vue 3.2.13.
This problem does ONLY appear if you have NO postcss config present whatsoever. I had deleted my postcss config file because I didn't want any postprocessing, but apparently it cannot really be disabled.
I tried setting various postcss options to disable it entirely, but without success. Setting
css.loaderOptions.postcss.postcssOptions.config: false
invue.config.js
results in a very obscure error,but I guess doing that wasn't a great idea anyway. It's possible that this latter error actually comes from
coffee-loader
. The former not, though, it's reproducible on a new repo.And finally, I also tried
because apparently that's something you could do in vue loader v14 but it doesn't change anything. I guess it was removed again on purpose?
Finally, however, I have found a workaround - setting in
package.json
allows building without errors. Without this, the error returns. I guess that's not really how this should work?
Thanks!
Edit: Solved by migrating to Vite.