-
Notifications
You must be signed in to change notification settings - Fork 163
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
POSTCSS: failed to transform "css/styles.css" #4
Comments
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 |
Still getting issues. Copied the package json from themes/blist folder to the project root folder. 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" |
Having the same issue. @Enforcer007, did you manage to fix it? |
@AntoineSoetewey Nope |
Hey @AntoineSoetewey and @Enforcer007 , I tried to replicate this issue and seem to work as intended. Here are the steps I followed.
Installed versions: If this is not working, please share the version of postcss and hugo that you are using. |
Works perfectly with this code ! Thanks, and great theme |
Hi, after following the instructions above, I have this problem: |
Hey @soulrrrrr this theme is compatible only with version v0.82.1 and above only. |
@apvarun Thanks! After upgrade Hugo's version, it works properly. |
When i try to preview the site by following the quick preview steps, i got this error :
My hugo version is :
hugo v0.85.0 linux/amd64 BuildDate=2021-07-05T14:33:29Z
I have tried to install postcss globally but give the same error. How i resolve this error ?
Sorry if i'm wrong, cz i'm new in hugo.
Thanks
The text was updated successfully, but these errors were encountered: