Skip to content

Error: add site dependencies: load resources: loading templates: function "diagrams" not defined #1347

New issue

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

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

Already on GitHub? Sign in to your account

Open
arungudelli opened this issue Apr 14, 2025 · 3 comments

Comments

@arungudelli
Copy link

Description

Error: add site dependencies: load resources: loading templates: "\node_modules@thulite\doks-core\layouts_default_markup\render-codeblock-goat.html:5:1": parse failed: template: _default/_markup/render-codeblock-goat.html:5: function "diagrams" not defined

Steps to reproduce

`npm create thulite@latest -- --template doks
npm install

`

Expected result

What should happen?

Actual result

What happened.

Environment

Paste the information here as shown by npm run info

@h-enk
Copy link
Member

h-enk commented Apr 14, 2025

What version of Hugo are you using? Please use v0.145.0 or later

I can't replicate your issue /it should work out of the box — for reference:

BTW this: \node_modules@thulite\doks-core\layouts_default_markup\render-codeblock-goat.html:5:1 should be \node_modules@thulite\doks-core\layouts\_default\_markup\render-codeblock-goat.html:5:1 (note the difference in the layouts_default_markup part (s/b layouts\_default\_markup)

@arungudelli
Copy link
Author

hugo 0.89 let me upgrade and check thank you

@h-enk
Copy link
Member

h-enk commented Apr 15, 2025

Please use 0.145.0 and not yet 0.146.x — see also #1355

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants