GithubHelp home page GithubHelp logo

Comments (9)

akhildevelops avatar akhildevelops commented on June 4, 2024 4

Still getting issues.

Copied the package json from themes/blist folder to the project root folder.
Ran npm install and then hugo serve.

Below is the error.

❯ hugo serve
Start building sites …
hugo v0.87.0+extended linux/amd64 BuildDate=2021-08-03T13:16:42Z
Error: Error building site: POSTCSS: failed to transform "css/styles.css" (text/css): TypeError: Object.fromEntries is not a function
    at Object.<anonymous> (/home/profitalgo/Personal/quickstart/themes/blist/node_modules/tailwindcss/lib/jit/corePlugins.js:242:13)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/profitalgo/Personal/quickstart/themes/blist/node_modules/tailwindcss/lib/jit/lib/setupContextUtils.js:36:43)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
Built in 1058 ms

config.toml of root folder

baseURL = 'http://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
theme = "blist"

from blist-hugo-theme.

akhildevelops avatar akhildevelops commented on June 4, 2024 1

@AntoineSoetewey Nope

from blist-hugo-theme.

apvarun avatar apvarun commented on June 4, 2024 1

Hey @AntoineSoetewey and @Enforcer007 ,

I tried to replicate this issue and seem to work as intended. Here are the steps I followed.

hugo new site test-blist
cd test-blist
git clone https://github.com/apvarun/blist-hugo-theme.git themes/blist
cp themes/blist/package.json ./package.json
cp themes/blist/package-lock.json ./package-lock.json
npm install
npm i -g postcss-cli
echo "theme = \"blist\"" >> config.toml
hugo serve

Installed versions:
POSTCSS: 9.1.0
Hugo version: 0.82.1

If this is not working, please share the version of postcss and hugo that you are using.

from blist-hugo-theme.

AntoineSoetewey avatar AntoineSoetewey commented on June 4, 2024 1

Works perfectly with this code ! Thanks, and great theme

from blist-hugo-theme.

apvarun avatar apvarun commented on June 4, 2024

The easiest way is to copy the package.json file from the theme folder to the hugo project root folder and then run npm install (make sure you have node js installed before running this command)

Once this is done, hugo serve would work. This step is a one-time process.

I will include it in the readme as well

from blist-hugo-theme.

AntoineSoetewey avatar AntoineSoetewey commented on June 4, 2024

Having the same issue.

@Enforcer007, did you manage to fix it?

from blist-hugo-theme.

soulrrrrr avatar soulrrrrr commented on June 4, 2024

Hi, after following the instructions above, I have this problem:
"/mnt/c/Users/USER/Desktop/aa/hugo_test/blast/layouts/partials/head.html:24:48": execute of template failed: template: partials/head.html:24:48: executing "partials/head.html" at <resources>: can't evaluate field PostProcess in type interface {}
Version:
postcss: 8.4.8
hugo: 0.68.3
on WSL2
Thanks!

from blist-hugo-theme.

apvarun avatar apvarun commented on June 4, 2024

Hey @soulrrrrr this theme is compatible only with version v0.82.1 and above only.
Although 0.68 supports postcss, it has limitations in parsing values that are not formatted as required.

from blist-hugo-theme.

soulrrrrr avatar soulrrrrr commented on June 4, 2024

@apvarun Thanks! After upgrade Hugo's version, it works properly.

from blist-hugo-theme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.