Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

GoogleAnalytics build error in Hugo v0.133+ #3143

Closed
2 tasks done
Li-Jinjie opened this issue Sep 21, 2024 · 4 comments
Closed
2 tasks done

GoogleAnalytics build error in Hugo v0.133+ #3143

Li-Jinjie opened this issue Sep 21, 2024 · 4 comments

Comments

@Li-Jinjie
Copy link

Preliminary Checks

Description

When build the "theme-research-group" generated from the template, I encounter the problem
ERROR deprecated: .Site.GoogleAnalytics was deprecated.

My hugo version is hugo v0.134.3.

I have noticed that this PR tries to solve this problem, but I don't know why this problem still exists in the "theme-research-group" template. Could you please check it?

Reproduction Link

https://github.com/Li-Jinjie/tmp-research-group

Steps to Reproduce

  1. update the hugo version to v0.133+
  2. clone the repository from https://github.com/HugoBlox/theme-research-group
  3. cd to the path
  4. execute hugo server

Expected Result

The site should be built successfully.

Actual Result

ERROR deprecated: .Site.GoogleAnalytics was deprecated in Hugo v0.120.0 and will be removed in Hugo 0.135.0. Use .Site.Config.Services.GoogleAnalytics.ID instead.
Built in 5366 ms
Error: error building site: logged 1 error(s)

What Hugo Module versions does your site use?

module github.com/wowchemy/starter-hugo-research-group

go 1.15

require (
github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5 v5.9.8-0.20240513193311-41bd113535e8
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-decap-cms v0.1.2-0.20231108143325-448ed0e3bd2b
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20240509231741-c3d23d929bc6
)

What operating system(s) are you seeing the problem on?

Linux

What browser(s) are you seeing the problem on?

Firefox

Which Hugo Blox template are you using?

theme-research-group

What version of Hugo are you using?

hugo v0.134.3-5fb333b9f5ff4ec018f9d78910177d0bec1befb0+extended linux/amd64 BuildDate=2024-09-19T14:28:20Z VendorInfo=snap:0.134.3

@c4yg70
Copy link

c4yg70 commented Sep 24, 2024

Same Problem now

@c4yg70
Copy link

c4yg70 commented Sep 24, 2024

I find it is because the version of blox in the theme is not updated simultaneously. So please let the developer also update the theme version of blox.

@Li-Jinjie
Copy link
Author

@gcushen Hi, could you please try to update the version for theme-research-group? Or could you please tell me what to do? I am willing to help.

@derlade
Copy link

derlade commented Oct 9, 2024

Fix your Hugo versions to v0.125.7. Hugo devs keep implementing breaking changes in minor version numbers, so even if this is fixed, site building will likely still break in the future.

@gcushen gcushen changed the title [theme-research-group] GoogleAnalytics built error in Hugo v0.133+ GoogleAnalytics built error in Hugo v0.133+ Oct 12, 2024
@gcushen gcushen changed the title GoogleAnalytics built error in Hugo v0.133+ GoogleAnalytics build error in Hugo v0.133+ Oct 12, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

4 participants