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

Failed to build the website project #69

Open
FeynmanZhou opened this issue Jun 13, 2022 · 1 comment
Open

Failed to build the website project #69

FeynmanZhou opened this issue Jun 13, 2022 · 1 comment

Comments

@FeynmanZhou
Copy link
Member

FeynmanZhou commented Jun 13, 2022

Hi team,

The openelb website is hosted on GitHub Pages and we used to update the website using the deploy.sh script. Now it is failed to update it using this script and it has the following error, you can also reproduce it using hugo -f docsy in your local:

Deploying updates to GitHub...
Start building sites …
hugo v0.100.2-d25cb2943fd94ecf781412aeff9682d5dc62e284+extended windows/amd64 BuildDate=2022-06-08T10:25:57Z VendorInfo=gohugoio
WARN 2022/06/13 18:03:14 The google_news internal template will be removed in a future release. Please remove calls to this template. See https://github.com/gohugoio/hugo/issues/9172 for additional information.
WARN 2022/06/13 18:03:14 .Path when the page is backed by a file is deprecated and will be removed in a future release. We plan to use Path for a canonical source path and you probably want to check the source is a file. To get the current behaviour, you can use a construct similar to the one below:

  {{ $path := "" }}
  {{ with .File }}
        {{ $path = .Path }}
  {{ else }}
        {{ $path = .Path }}
  {{ end }}


Re-run Hugo with the flag --panicOnWarning to get a better error message.
WARN 2022/06/13 18:03:14 The google_news internal template will be removed in a future release. Please remove calls to this template. See https://github.com/gohugoio/hugo/issues/9172 for additional information.
Error: Error building site: POSTCSS: failed to transform "scss/main.css" (text/css). Check your PostCSS installation; install with "npm install postcss-cli". See https://gohugo.io/hugo-pipes/postcss/: this feature is not available in your current Hugo version, see https://goo.gl/YMrWcn for more information
Total in 1024 ms

BTW, this method is not recommended for future maintenance. As we have leveraged Vercel for web hosting and PR preview, for the next step, we can use Vercel to automate this process and host the website on openelb.io.

@FeynmanZhou
Copy link
Member Author

/cc @renyunkang @Patrick-LuoYu @weili520

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

1 participant