# HAMUR_E0220: A modules entry is a string

A modules entry is a string. Error `HAMUR_E0220` belongs to `hamur`, config, environment and command line (0001 – 0999).

## Message

```text
HAMUR_E0220 modules[<index>] is "<specifier>", a string; import the module and list it: import <name> from "<specifier>"
```

## Cause

An entry of `modules`, or the first item of a `[module, options]` pair, is a module specifier written as a string. `modules` takes the imported module, so TypeScript checks it in the editor and types its options.

## Fix

Import the module at the top of `hamur.config.ts` with the line the message shows, and list the imported name in `modules` in place of the string, as in `modules: [db, [sitemap, { hostname: "https://example.com" }]]`.
