Skip to content
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

hugo server -w fails because themes submodule is removed #227

Open
DarrellTang opened this issue Jan 13, 2023 · 3 comments
Open

hugo server -w fails because themes submodule is removed #227

DarrellTang opened this issue Jan 13, 2023 · 3 comments

Comments

@DarrellTang
Copy link

Hello, beautiful theme, thanks for all the hard work on it!

Trying to preview the site using hugo server -w fails now that the folder at themes/toha is removed in this commit 994b971

Is there a way to preview the site locally now that the submodule has been removed?

@hossainemruz
Copy link
Member

Hi @DarrellTang. The master branch contains some undocumented changes. We have changed how you use the theme. Now, you have to use Hugo Modules.

Try running

npm install
hugo mod tidy
hugo server -w

@roumail
Copy link

roumail commented Mar 10, 2023

Hi. Thanks for the amazing theme. I, too am having a difficult time making this theme run. I was following the quickstart guide but then got stuck when the docs were outdated. I then proceeded to get a new clean repo and try to follow the steps highlighted in the three places here:

  1. git submodule add https://github.com/hugo-toha/toha.git themes/toha.
  2. https://toha-guides.netlify.app/posts/getting-started/prepare-site/
  3. https://toha-guides.netlify.app/posts/configuration/site-parameters/

Now I feel I'm nowhere.. Do you have any suggestions on what to do? I am unable to get the website to build and I don't have too much experience with these tools.. I already tried running the commands above but still get this error

ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/application.js:2:7": Could not resolve "bootstrap"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/application.js:3:7": Could not resolve "@fortawesome/fontawesome-free/js/all"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/darkmode/darkreader.js:1:54": Could not resolve "darkreader"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/flowchart/mermaid.js:1:20": Could not resolve "mermaid"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/math/katex.js:1:32": Could not resolve "katex/contrib/auto-render"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/syntaxhighlight/hljs.js:1:17": Could not resolve "highlight.js"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/videoplayer/plyr.js:1:17": Could not resolve "plyr"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/pages/home.js:1:21": Could not resolve "ityped"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/pages/note.js:1:25": Could not resolve "imagesloaded"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/pages/search.js:1:17": Could not resolve "fuse.js"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/pages/search.js:2:17": Could not resolve "mark.js"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/sections/projects.js:1:22": Could not resolve "filterizr"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/sections/publications.js:1:22": Could not resolve "filterizr"
ERROR 2023/03/10 13:37:45 JSBUILD: failed to transform "scripts/application.js" (text/javascript): "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/application.js:1:7": Could not resolve "popper.js"
ERROR 2023/03/10 13:37:45 TOCSS: failed to transform "styles/application.scss" (text/x-scss): "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/styles/application.template.scss:3:1": File to import not found or unreadable: bootstrap/scss/bootstrap.

@ftth05
Copy link

ftth05 commented Jul 19, 2023

Hi. Thanks for the amazing theme. I, too am having a difficult time making this theme run. I was following the quickstart guide but then got stuck when the docs were outdated. I then proceeded to get a new clean repo and try to follow the steps highlighted in the three places here:

  1. git submodule add https://github.com/hugo-toha/toha.git themes/toha.
  2. https://toha-guides.netlify.app/posts/getting-started/prepare-site/
  3. https://toha-guides.netlify.app/posts/configuration/site-parameters/

Now I feel I'm nowhere.. Do you have any suggestions on what to do? I am unable to get the website to build and I don't have too much experience with these tools.. I already tried running the commands above but still get this error

ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/application.js:2:7": Could not resolve "bootstrap"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/application.js:3:7": Could not resolve "@fortawesome/fontawesome-free/js/all"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/darkmode/darkreader.js:1:54": Could not resolve "darkreader"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/flowchart/mermaid.js:1:20": Could not resolve "mermaid"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/math/katex.js:1:32": Could not resolve "katex/contrib/auto-render"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/syntaxhighlight/hljs.js:1:17": Could not resolve "highlight.js"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/features/videoplayer/plyr.js:1:17": Could not resolve "plyr"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/pages/home.js:1:21": Could not resolve "ityped"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/pages/note.js:1:25": Could not resolve "imagesloaded"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/pages/search.js:1:17": Could not resolve "fuse.js"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/pages/search.js:2:17": Could not resolve "mark.js"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/sections/projects.js:1:22": Could not resolve "filterizr"
ERROR 2023/03/10 13:37:45 js.Build failed: "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/sections/publications.js:1:22": Could not resolve "filterizr"
ERROR 2023/03/10 13:37:45 JSBUILD: failed to transform "scripts/application.js" (text/javascript): "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/scripts/application.js:1:7": Could not resolve "popper.js"
ERROR 2023/03/10 13:37:45 TOCSS: failed to transform "styles/application.scss" (text/x-scss): "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes/toha/assets/styles/application.template.scss:3:1": File to import not found or unreadable: bootstrap/scss/bootstrap.

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants