'found no layout file for "HTML" for kind "home"

I am using this command to run a hugo project in my MacBook Pro with M1 chip:

hugo new site example
cd example
hugo server

the output log like this:

➜  example hugo server
Start building sites …
hugo v0.92.0+extended darwin/arm64 BuildDate=unknown
WARN 2022/03/27 15:49:33 found no layout file for "HTML" for kind "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2022/03/27 15:49:33 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2022/03/27 15:49:33 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

                   | EN
-------------------+-----
  Pages            |  3
  Paginator pages  |  0
  Non-page files   |  0
  Static files     |  0
  Processed images |  0
  Aliases          |  0
  Sitemaps         |  1
  Cleaned          |  0

Built in 4 ms
Watching for changes in /example/{archetypes,content,data,layouts,static}
Watching for config changes in /example/config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
WARN 2022/03/27 15:49:36 found no layout file for "HTML" for kind "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

when I access the url http://localhost:1313/, the web page was blank. why did this happen? what should I do to fix it? At least make it show the default page.



Solution 1:[1]

You can also get this error (WITH a content/_index.html and corresponding layouts/index.html) if you neglect to define your theme in the config.toml (DAMHIKT)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1