rsnext/errors/no-assign-module-variable.mdx
Delba de Oliveira 44d1a1cb15
docs: Migrate error messages to MDX and App Router. (#52038)
This PR is part of a larger effort to migrate error messages to MDX and
use App Router: https://github.com/vercel/front/pull/23459
2023-07-05 06:11:16 -07:00

17 lines
397 B
Text

---
title: No assign module variable
---
> Prevent assignment to the `module` variable.
## Why This Error Occurred
A value is being assigned to the `module` variable. The `module` variable is already used and it is highly likely that assigning to this variable will cause errors.
## Possible Ways to Fix It
Use a different variable name:
```js filename="example.js"
let myModule = {...}
```