-
-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS build issues #210
Comments
check if you installed npm dependencies properly, I had the same issue you need to run npm commands inside the hugo projects |
I'm getting this error also. I've created a new hugo site and added this theme as a submodule. I'm able to serve locally, but not able to build. My environment:
|
Ok nvm I was able to fix this by reading this post. I ran these two commands and I was able to build:
|
Thank you for sharing @gray419! |
Hello, I'm having the same issue, using the theme via gitlab-ci. |
@eauchat , I fixed the same issue by adding a package.json file, with the following content :
I did not try with gitlab-ci, I use netlify. By default, Netlify runs npm install to install the dependencies listed in my package.json file. So, if you configure your CI to install the dependencies, the issue will be solved. |
i've already done all your solutions and not worked for me ;( |
@dannie-ml If you provide some error feedback, information about your set up, or a link to your site repository, we can try and help! 😄 |
For folks who find this issue because they are still tripping over the error:
I added the package.json shown in this comment and I still had the error, because I forgot to run:
This cleared the error for me. |
I thought I'd open an issue here, although I'm not sure if this could actually be related to gohugoio/hugo#7278 (comment). In any case, I'm still getting the
POSTCSS: failed to transform "css/main.css"
error when I try to build the site, despite making sure all of the dependencies in the documentation are installed.I'm not actually using a snap installation of Hugo, though
Hugo Static Site Generator v0.71.1-A301F6B2/extended linux/amd64 BuildDate: 2020-05-25T09:18:12Z
The text was updated successfully, but these errors were encountered: