Skip to content
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

ERROR POSTCSS: failed to transform "/css/eureka.css" (text/css): resource #249

Open
Steve-Shao opened this issue Jul 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Steve-Shao
Copy link

Describe the bug

I've been using the eureka theme for a few years, but in a recent edit, when I used hugo server, I got:

ERROR POSTCSS: failed to transform "/css/eureka.css" (text/css): resource "css/eureka.css_59122205213644db2a335025f85b41bf" not found in file cache
Built in 184 ms
Error: error building site: POSTCSS: failed to transform "/css/eureka.css" (text/css): resource "css/eureka.css_59122205213644db2a335025f85b41bf" not found in file cache

I searched on the web and this error seems to happen when hugo upgrades, but I've not found a good solution that works for me.

@Steve-Shao Steve-Shao added the bug Something isn't working label Jul 21, 2024
@yashlala
Copy link

I don't know why this happens -- but I can tell you the steps that fixed the problem for me:

  1. Go to the eureka submodules directory, and run hugo mod clean.
  2. Run hugo mod clean in the project root.
  3. Run hugo build to build the project.

Hopefully this helps.

@thebeanogamer
Copy link

I also ran into this, https://discourse.gohugo.io/t/error-building-site-postcss/31766/2 fixed it for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants