Closed phillipgibson closed 3 years ago
Needed the extended version of Hugo. Resolved.
Have the same issue. The extended Hugo has been installed.
$ hugo version
Hugo Static Site Generator v0.78.2/extended windows/amd64 BuildDate: unknown
$ go version
go version go1.15.5 windows/amd64
$ hugo -d docs
Start building sites …
Total in 2519 ms
Error: Error building site: POSTCSS: failed to transform "scss/main.css" (text/css): resource "scss/scss/main.scss_4853eb546e7a6c0898ed71feae7357c0" not found in file cache
@pplmx you likely need to run npm install
from the docsy-example
directory so that postcss is installed
If you just run hugo server
to serve the site locally, that step isn't needed, but it is if you want to run hugo -d docs
to build the static/standalone output.
Hi, @gwatts
I have run "npm install", it still doesn't work
$ npm list
tech-doc-hugo@0.0.1 C:\Users\mystic\Jetbrains\IdeaProjects\yoooo.fun
├── autoprefixer@9.8.6
└── postcss-cli@7.1.2
Hrm that seems odd.. i'm running on a Mac, but this is my output:
areth@Dibbley tmp $ gh repo clone google/docsy-example -- --recursive
Cloning into 'docsy-example'...
remote: Enumerating objects: 1157, done.
remote: Total 1157 (delta 0), reused 0 (delta 0), pack-reused 1157
Receiving objects: 100% (1157/1157), 2.47 MiB | 9.56 MiB/s, done.
Resolving deltas: 100% (592/592), done.
Submodule 'themes/docsy' (https://github.com/google/docsy) registered for path 'themes/docsy'
Cloning into '/private/tmp/docsy-example/themes/docsy'...
remote: Enumerating objects: 63, done.
remote: Counting objects: 100% (63/63), done.
remote: Compressing objects: 100% (40/40), done.
remote: Total 4295 (delta 30), reused 39 (delta 19), pack-reused 4232
Receiving objects: 100% (4295/4295), 7.61 MiB | 19.92 MiB/s, done.
Resolving deltas: 100% (2410/2410), done.
Submodule path 'themes/docsy': checked out 'dba99bb4bc794a1c2b1ea2311da8966ae1f924ea'
Submodule 'assets/vendor/Font-Awesome' (https://github.com/FortAwesome/Font-Awesome.git) registered for path 'themes/docsy/assets/vendor/Font-Awesome'
Submodule 'assets/vendor/bootstrap' (https://github.com/twbs/bootstrap.git) registered for path 'themes/docsy/assets/vendor/bootstrap'
Cloning into '/private/tmp/docsy-example/themes/docsy/assets/vendor/Font-Awesome'...
remote: Enumerating objects: 112488, done.
remote: Total 112488 (delta 0), reused 0 (delta 0), pack-reused 112488
Receiving objects: 100% (112488/112488), 94.25 MiB | 43.30 MiB/s, done.
Resolving deltas: 100% (66950/66950), done.
Cloning into '/private/tmp/docsy-example/themes/docsy/assets/vendor/bootstrap'...
remote: Enumerating objects: 168, done.
remote: Counting objects: 100% (168/168), done.
remote: Compressing objects: 100% (129/129), done.
remote: Total 159196 (delta 67), reused 77 (delta 28), pack-reused 159028
Receiving objects: 100% (159196/159196), 166.42 MiB | 38.40 MiB/s, done.
Resolving deltas: 100% (104485/104485), done.
Submodule path 'themes/docsy/assets/vendor/Font-Awesome': checked out '951a0d011f8c832991750c16136f8e260efa60b5'
Submodule path 'themes/docsy/assets/vendor/bootstrap': checked out 'a716fb03f965dc0846df479e14388b1b4b93d7ce'
gareth@Dibbley tmp $ cd docsy-example/
gareth@Dibbley docsy-example (master=) $ hugo version
Hugo Static Site Generator v0.78.2/extended darwin/amd64 BuildDate: unknown
areth@Dibbley docsy-example (master=) $ hugo -d docs
Start building sites …
Total in 1724 ms
Error: Error building site: POSTCSS: failed to transform "scss/main.css" (text/css): resource "scss/scss/main.scss_4853eb546e7a6c0898ed71feae7357c0" not found in file cache
So that brings me to the same problem as you, but then...
areth@Dibbley docsy-example (master %=) $ npm install
added 117 packages from 112 contributors and audited 117 packages in 2.026s
9 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
gareth@Dibbley docsy-example (master %=) $ hugo -d docs
Start building sites …
| EN | NO
-------------------+----+-----
Pages | 47 | 76
Paginator pages | 0 | 0
Non-page files | 3 | 1
Static files | 38 | 38
Processed images | 9 | 2
Aliases | 4 | 0
Sitemaps | 2 | 1
Cleaned | 0 | 0
Total in 1720 ms
npm list
gives me a lot of output
npm --version
6.14.6
Re-clone from the Github. Run the above command, it works fine now. I don't know why. Anyway, Thanks a lot, @gwatts ^_^
A mystery, but glad it's working, @pplmx ! :-)
After I clone and run the hugo server I get the following message:
Error: Error building site: TOCSS: failed to transform "scss/main.scss" (text/x-scss): resource "scss/scss/main.scss_9fadf33d895a46083cdd64396b57ef68" not found in file cache