Hello!
When a type hugo
in promtp the following error appears:
Error: While parsing config: (4, 1): unexpected token
This happened after I typed:
echo 'theme = "ananke"' >> config.toml
Following step 3 of the Quick Start
Can anyone help me?
Hello!
When a type hugo
in promtp the following error appears:
Error: While parsing config: (4, 1): unexpected token
This happened after I typed:
echo 'theme = "ananke"' >> config.toml
Following step 3 of the Quick Start
Can anyone help me?
It should be:
echo 'theme = "ananke"' >> config.toml
Oh, sorry, I typed this.
But I did this steps later, I think I should have done it at the correct time.
You need to share your config with us. The error code means there is a character in your config that shouldn’t be there. It may be obvious, but for us to help you need to show it.
Of course!
I already thank the help.
Is this what I need to show?
The contents of config.toml
.
The numbers in the error refer to the line and character number. So (4,1) is the fourth line, first character.
`theme = "earial"
should be:
theme = "earial"
Oh yes
Thank you!!
Please read the documentation a little bit more. If this is still an issue after some trial and error, please open a new thread.