Skip to content
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

tweet shortcode requires two named parameters, and execute of template failed #1739

Open
alexjshepler opened this issue Apr 25, 2024 · 1 comment

Comments

@alexjshepler
Copy link

When I clone the repo and follow the build instructions, I get the following errors, and it then hangs

> fireship@2.0.0 start
> concurrently "vite build --watch" "npm run hugo"

[1] 
[1] > fireship@2.0.0 hugo
[1] > hugo server --forceSyncStatic --port 6969
[1] 
[0] vite v3.0.5 building for production...
[0] 
[0] watching for file changes...
[0] 
[0] build started...
[0] transforming...
[1] Watching for changes in /Users/alexjshepler/Projects/fireship.io/{archetypes,content,data,layouts,package.json,static}
[1] Watching for config changes in /Users/alexjshepler/Projects/fireship.io/config.toml
[1] Start building sites ... 
[1] hugo v0.125.4+extended darwin/amd64 BuildDate=2024-04-25T13:27:26Z VendorInfo=brew
[1] 
[1] ERROR The "tweet" shortcode requires two named parameters: user and id. See "/Users/alexjshepler/Projects/fireship.io/content/lessons/firebase-emulator-advanced/index.md:31:5"
[1] ERROR The "tweet" shortcode requires two named parameters: user and id. See "/Users/alexjshepler/Projects/fireship.io/content/lessons/regex-cheat-sheet-js/index.md:33:1"
[1] ERROR The "tweet" shortcode requires two named parameters: user and id. See "/Users/alexjshepler/Projects/fireship.io/content/lessons/vue-autosaving-forms-with-firestore/index.md:31:1"
[1] Built in 3191 ms
[1] Error: error building site: render: failed to render pages: render of "home" failed: "/Users/alexjshepler/Projects/fireship.io/layouts/_default/list.algolia.json:6:54": execute of template failed: template: _default/list.algolia.json:6:54: executing "_default/list.algolia.json" – File is nil; wrap it in if or with: {{ with .File }}{{ .UniqueID }}{{ end }}
[1] npm run hugo exited with code 1
[0] Browserslist: caniuse-lite is outdated. Please run:
[0]   npx update-browserslist-db@latest
[0]   Why you should do it regularly: https://github.com/browserslist/update-db#readme
[0] ✓ 122 modules transformed.
[0] rendering chunks...
[0] ../static/svelte/index.html              1.01 KiB
[0] ../static/svelte/index.esm.4c8a409f.js   9.81 KiB / gzip: 2.83 KiB
[0] ../static/svelte/confetti.c65a864a.js    6.70 KiB / gzip: 2.54 KiB
[0] ../static/svelte/index.4b67779d.js       10.88 KiB / gzip: 4.29 KiB
[0] ../static/svelte/player.es.ed5f24b4.js   37.66 KiB / gzip: 11.62 KiB
[0] ../static/svelte/index.61055369.css      62.97 KiB / gzip: 10.19 KiB
[0] ../static/svelte/index.9bc8c100.js       337.46 KiB / gzip: 75.45 KiB
[0] ../static/svelte/index.esm.914d1c85.js   373.99 KiB / gzip: 92.42 KiB
[0] built in 20519ms.
[0] wrote index.4b67779d.js to hugo data
@alexjshepler
Copy link
Author

I created a pull request that should fix this issue. It stemmed from the current version of hugo not supporting the current tags.
Source: rstudio/blogdown#701

Pull Request #1740

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

1 participant