onweru / newsroom

A simple, minimalistic Hugo theme. View Demo here
https://rooms.netlify.app/
Other
287 stars 114 forks source link

Error building site: MINIFY: failed to transform "js/index.js" #42

Closed theysayitislife closed 2 years ago

theysayitislife commented 2 years ago

I want this to work so baaaddddd....!

Error: Error building site: MINIFY: failed to transform "js/index.js" (application/javascript): unexpected ( in expression on line 256 and column 3
  256:   (function copyHeadingLink() {
         ^
Built in 46 ms

I originally thought the problem was the SCSS thing because I didn't have the extended version of Hugo.

Then I installed the extended version and confirmed with hugo version which is hugo v0.91.2+extended

What am I missing?

Amazing theme thank you!

elliotrpage commented 2 years ago

Just a note that I am getting this too - it is occuring as part of CI in Gitlab.

Running this on my personal laptop with an older version of hugo (I have not used it in a while) is working: hugo v0.88.1-5BC54738

onweru commented 2 years ago

fixed in #41