Azure / aihub

AI Hub Executive Demo HandsOn
https://azure.github.io/aihub
MIT License
48 stars 22 forks source link

Newer versions of Hugo are not supported by the Dev Container when working locally with `docs` #48

Closed rliberoff closed 4 months ago

rliberoff commented 4 months ago

Currently, the Dev Container configuration uses the latest version of Hugo:

https://github.com/Azure/aihub/blob/2f54549d8b6b9757610acc8a9ba37e0bd99a2c53/.devcontainer/devcontainer.json#L37-L40

However, the latest version 0.126.1 is not compatible with the current state of the code, and the following errors are thrown:

image

Or:

image

To fix this, it is necessary to either set fixed the version to 0.119.0 or update the code to work with the latest version.

rliberoff commented 4 months ago

At the end, there was no issue.

The documentation should be built using WSL2 instead of Windows from the Dev Container. When working from a WSL2 file system, running npm build:preview or npm run _serve works as expected, even with the latest version of Hugo.

If you are working in Windows, do not use the Dev Container.