helm / helm-www

The Helm website for docs, blog and project info.
https://helm.sh
MIT License
201 stars 505 forks source link

`hugo serve` fails to build site #1539

Open fheinecke opened 8 months ago

fheinecke commented 8 months ago

Hi folks. I'm working on a small doc PR and wanted to test the changes locally before filing. Following the development section of the readme exactly, I get the following error upon hugo serve:

fredheinecke@Freds-MacBook-Pro helm-www % hugo serve
WARN  DEPRECATED: Kind "taxonomyterm" used in disableKinds is deprecated, use "taxonomy" instead.
WARN  deprecated: config: languages.ko.description: custom params on the language top level was deprecated in Hugo v0.112.0 and will be removed in a future release. Put the value below [languages.ko.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
WARN  deprecated: config: languages.zh.description: custom params on the language top level was deprecated in Hugo v0.112.0 and will be removed in a future release. Put the value below [languages.zh.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
Watching for changes in /Users/fredheinecke/helm-www/{content,i18n,package.json,postcss.config.js,themes}
Watching for config changes in /Users/fredheinecke/helm-www/config.toml
Start building sites … 
hugo v0.121.1-00b46fed8e47f7bb0a85d7cfc2d9f1356379b740+extended darwin/arm64 BuildDate=2023-12-08T08:47:45Z VendorInfo=brew

WARN  found no layout file for "html" for kind "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
Built in 631 ms
Error: error building site: MINIFY: failed to transform "js/jquery.js" (text/javascript): unexpected /*!
 * Sizzle CSS Selector Engine v1.10.19
 * http://sizzlejs.com/
 *
 * Copyright 2013 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2014-04-18
 */ in expression on line 14 and column 13202
   14: ...object "+b+"]"]=b.toLowerCase()});var eb=/*!

Here's some relevant version info:

fredheinecke@Freds-MacBook-Pro helm-www % hugo version
hugo v0.121.1-00b46fed8e47f7bb0a85d7cfc2d9f1356379b740+extended darwin/arm64 BuildDate=2023-12-08T08:47:45Z VendorInfo=brew
fredheinecke@Freds-MacBook-Pro helm-www % yarn --version
1.22.19
fredheinecke@Freds-MacBook-Pro helm-www % uname -a
Darwin Freds-MacBook-Pro.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 arm64

Installation/setup process:

  1. brew install hugo
  2. yarn install (I already had yarn installed via homebrew)
  3. hugo serve
gjenkins8 commented 7 months ago

See the above PR. I have no idea why, but somehow the vended jquery is invalid now (I think).