zeon-studio / hugoplate

Hugoplate is a free starter template built with Hugo and TailwindCSS that will save you hours of work.
https://zeon.studio/preview?project=hugoplate
MIT License
798 stars 218 forks source link

Build problem #94

Closed eqslab closed 7 months ago

eqslab commented 7 months ago

Hello guys! Could you please verify the correctness of config file for GitHub Actions?

I got an error trying to build a website. Sounds like it could be a problem with postcss-cli, but my attempts to solve the issue weren't successful. Will be very helpful for the help. Thank you!

2024-02-13_01-27_1 2024-02-13_01-27

arijitlaik commented 7 months ago

Honestly, bit difficult to say what exactly went wrong for this use case, since the ci builds were successful with the pr #86 , here was my last build using this updated action, maybe @eqslab can revert to the older actions and see if things are running smoothly Screenshot from 2024-02-13 11-51-00

embedded-consultants commented 7 months ago

https://github.com/embedded-consultants/embedded-consultants.github.io/actions/runs/7891626344

We are getting the same story.

ERROR POSTCSS: failed to transform "css/style-lazy.css" (text/css): file:///home/runner/work/embedded-consultants.github.io/embedded-consultants.github.io/node_modules/@sindresorhus/merge-streams/index.js:2
import {PassThrough as PassThroughStream, getDefaultHighWaterMark} from 'node:stream';
                                          ^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: The requested module 'node:stream' does not provide an export named 'getDefaultHighWaterMark'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)

Node.js v18.15.0
Total in 3[94](https://github.com/embedded-consultants/embedded-consultants.github.io/actions/runs/7891626344/job/21536339760#step:8:95)2 ms
Error: error building site: POSTCSS: failed to transform "css/style.css" (text/css): file:///home/runner/work/embedded-consultants.github.io/embedded-consultants.github.io/node_modules/@sindresorhus/merge-streams/index.js:2
import {PassThrough as PassThroughStream, getDefaultHighWaterMark} from 'node:stream';
                                          ^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: The requested module 'node:stream' does not provide an export named 'getDefaultHighWaterMark'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)
embedded-consultants commented 7 months ago

Fixed it by NODE_VERSION: "20.0.0" in the .github main.yml file.

eqslab commented 7 months ago

Fixed it by NODE_VERSION: "20.0.0" in the .github main.yml file.

It worked out for me! A big, big thank you!

tfsomrat commented 7 months ago

I have updated the node version in main.yml file. thanks to @embedded-consultants