[Solved] Help | Error: While parsing config: (4, 1): unexpected token


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
1 Like

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. :slight_smile:

1 Like

Of course!
I already thank the help.

Is this what I need to show?

The contents of config.toml. :slight_smile:

1 Like

Oh, sorry

And this

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"
1 Like

:astonished: Oh yes

Thank you!! :sweat_smile:

Please read the documentation a little bit more. If this is still an issue after some trial and error, please open a new thread.

1 Like