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

After upgrade build fails #176

Open
1 task done
peter-pr opened this issue Feb 22, 2025 · 3 comments
Open
1 task done

After upgrade build fails #176

peter-pr opened this issue Feb 22, 2025 · 3 comments

Comments

@peter-pr
Copy link

What is your Hugo Extended Version

hugo v0.144.2+extended+withdeploy darwin/amd64

What is your Go Version

go1.24.0 darwin/amd64

What is your Node.js Version

[email protected]

What is your Operating System

mac

Check for Existing Issues

  • I have searched and found no relevant issues.

Expected Behavior

npm run dev to be successful, but its not

Steps to Reproduce

npm run dev

Start building sites …
hugo v0.144.2+extended+withdeploy darwin/amd64 BuildDate=2025-02-19T12:17:04Z VendorInfo=brew

Built in 1398 ms
Error: error building site: TAILWINDCSS: failed to transform "/css/main.css" (text/css): Error: Failed to find 'tailwindcss'
in [
mysite/website/mysite-site
at /node_modules/postcss-import/lib/resolve-id.js:35:13
/node_modules/postcss/lib/lazy-result.js:293:11)
/node_modules/tailwindcss/lib/cli/build/index.js:49:9)

Code Reproduction URL

No response

Additional Information

I ran these before npm run dev

npm run update-theme
npm run update-modules

@pasdengl
Copy link

The issue seems to have been introduced in commit 02085ff. Before that the build runs smoothly.

@tfsomrat
Copy link
Contributor

tfsomrat commented Feb 23, 2025

Hey @pasdengl, can you share your repository? Also, it's a big update, and many dependencies have been changed. So it's recommended that you fork or clone the latest code instead of using the update-theme script.

@Anth0rx
Copy link

Anth0rx commented Feb 25, 2025

@tfsomrat We use Hugoplate here and run into the same problem. We use Hugoplate as a submodule in themes/hugoplate and pull in the latest changes occasionally. We do dot use the update-theme script.

Initially we used npm run project-setup to set up the example project and make custom changes in layouts folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants