# E0096

Warning name: `unfenced_import`

An `.mbtx` script declares imports outside its frontmatter. This older form
is deprecated.

## Erroneous example

```{literalinclude} /sources/error_codes/0096_error/main.mbtx
:language: moonbit
```

## Suggestion

Move the imports into frontmatter at the beginning of the script, enclosed
by `---` lines. Package imports in `moon.pkg` do not need these delimiters.

```{literalinclude} /sources/error_codes/0096_fixed/main.mbtx
:language: moonbit
```

See [Running `.mbtx` Scripts](/toolchain/moon/script-mode.md) for dependencies,
aliases, and import-all syntax.
