salinger-theme icon indicating copy to clipboard operation
salinger-theme copied to clipboard

Build not as expected

Open m4sterbunny opened this issue 1 year ago • 10 comments

Given attempt to follow a) installation instructions and b) an AI assisted attempt to update Update partials/head.html: to change resources.PostCSS to css.PostCSS Outcome is underwhelming: image Hard as newbie to determine whether PEBKAC or not

m4sterbunny avatar Nov 16 '24 21:11 m4sterbunny

I believe this might be a problem with deprecated dependencies. I will look into it in the next few days. Until then, I will keep the issue open. Thank you @m4sterbunny for reporting this.

jacksalici avatar Nov 16 '24 21:11 jacksalici

Hello @m4sterbunny, I have tried to install the theme from scratch in a fresh Hugo site and it works as expected. Some dependencies may not be update but at least for me it is not a problem. Have you sure to have followed every step in the readme? Are there any errors that you can provide me? Both in the terminal and in the log console? TYSM.

jacksalici avatar Nov 20 '24 14:11 jacksalici

I will run through again @jacksalici and screenshot my journey

m4sterbunny avatar Nov 20 '24 18:11 m4sterbunny

Following first pattern "Preview the example site"

  1. Prerequisites image
  2. Clone and install image
  3. cd and serve image

Outcome: image

m4sterbunny avatar Nov 20 '24 18:11 m4sterbunny

Following the second pattern: install the theme (to an existing site): 0.1 Prerequisites (as per above) 0.2 have an existing site image 0.3 initiate with git image

  1. Add as submodule image

  2. copy hugo.toml from theme image

  3. install dependencies a. at theme level image b. at root level image

  4. Serve hugo server Outcome: image image

  5. Bringing layout folder up from theme image

  6. Serve Outcome: Start building sites … hugo v0.138.0+extended+withdeploy darwin/arm64 BuildDate=2024-11-06T11:22:34Z VendorInfo=brew

WARN deprecated: resources.PostCSS was deprecated in Hugo v0.128.0 and will be removed in a future release. Use css.PostCSS instead. ERROR render of "home" failed: "/Users/{user-id}/GitHub/experiments-in-hugo/jacksalanger/pattern2/layouts/_default/baseof.html:6:6": execute of template failed: template: index.html:6:6: executing "index.html" at <partial "head.html" .>: error calling partial: "/Users/{user-id}/GitHub/experiments-in-hugo/jacksalanger/pattern2/layouts/partials/head.html:48:54": execute of template failed: template: partials/head.html:48:54: executing "partials/head.html" at <resources.PostCSS>: error calling PostCSS: no Resource provided in transformation ERROR render of "taxonomy" failed: "/Users/{user-id}/GitHub/experiments-in-hugo/jacksalanger/pattern2/layouts/_default/baseof.html:6:6": execute of template failed: template: _default/taxonomy.html:6:6: executing "_default/taxonomy.html" at <partial "head.html" .>: error calling partial: "/Users/{user-id}/GitHub/experiments-in-hugo/jacksalanger/pattern2/layouts/partials/head.html:48:54": execute of template failed: template: partials/head.html:48:54: executing "partials/head.html" at <resources.PostCSS>: error calling PostCSS: no Resource provided in transformation Built in 3 ms Error: error building site: render: failed to render pages: render of "404" failed: "/Users/{user-id}/GitHub/experiments-in-hugo/jacksalanger/pattern2/layouts/_default/baseof.html:6:6": execute of template failed: template: 404.html:6:6: executing "404.html" at <partial "head.html" .>: error calling partial: "/Users/{user-id}/GitHub/experiments-in-hugo/jacksalanger/pattern2/layouts/partials/head.html:48:54": execute of template failed: template: partials/head.html:48:54: executing "partials/head.html" at <resources.PostCSS>: error calling PostCSS: no Resource provided in transformation

m4sterbunny avatar Nov 20 '24 18:11 m4sterbunny

Perhaps I need Go or something else that you have day-to-day and no longer think about?

m4sterbunny avatar Nov 20 '24 18:11 m4sterbunny

If there is anything else I can show to assist, pls holler!

m4sterbunny avatar Nov 20 '24 18:11 m4sterbunny

Sorry, It's a very busy period for me. Thank you very much for the detailed information, as soon as possibile I will work to solve it.

jacksalici avatar Nov 21 '24 15:11 jacksalici

Would it help if I made you a VM to have a "from scratch" experience with?

m4sterbunny avatar Dec 09 '24 08:12 m4sterbunny

I will use the christmas holidays to solve this issue and publish and update 💪

jacksalici avatar Dec 16 '24 10:12 jacksalici