REF_NOT_FOUND: Works locally not on Ci build. Version issue?

My page path is: root/content/my-page.html

In the page I have:

{{< ref "content/my-page.html" >}}

This outputs: http://localhost:1313/my-page/ as expected when in dev mode. It also works if I run Hugo locally to build, outputting

However when I build on Circle Ci its throwing an error:

ERROR [en] REF_NOT_FOUND: Ref "content/my-page.html": "/home/circleci/project/root/content/my-page.html:183:22": page not found

Could this be a Hugo version error, my local version is:

Hugo Static Site Generator v0.72.0/extended darwin/amd64 BuildDate: unknown

My Circle Ci version is:

Hugo Static Site Generator v0.59.1-D5DAB232 linux/amd64 BuildDate: 2019-10-31T15:21:02Z

For those searching in future, this appears to have been an issue with my Hugo version.

Upon testing both v0.59.1 and v0.72.0, I found the issue confined to v0.59.1. So if you’re having this error, take a look at your Hugo version.