Comments (9)
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.
@AntoineSoetewey Nope
from blist-hugo-theme.
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.
Works perfectly with this code ! Thanks, and great theme
from blist-hugo-theme.
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.
Having the same issue.
@Enforcer007, did you manage to fix it?
from blist-hugo-theme.
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.
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.
@apvarun Thanks! After upgrade Hugo's version, it works properly.
from blist-hugo-theme.
Related Issues (20)
- Layout Broken on Netlify HOT 10
- Disable 'Table of contents' for About page HOT 1
- Homepage social icons and copyright
- Display tags for each post HOT 4
- Question: Pagination and dark theme by default HOT 8
- RTL languages support HOT 1
- Somehow the site loses the css HOT 3
- `hugo`does not generate css like `hugo server` HOT 14
- toc is generated on page even if I specify false in the page's frontmatter
- images do not render when site is published to gitlab pages and the likes HOT 5
- I got stuck at this step: Preview the theme with example content HOT 1
- Remove the Profile picture on the home page HOT 1
- Preserve language selection
- Deprecated feature
- See issue #79
- Add slider on about.md
- Execution of template failed- error calling head.html
- Add submenu
- Add Bluesky social icon
- Default dark mode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blist-hugo-theme.