# Fix 'Constructor requires new operator' in Next.js

> Fix the Next.js TypeError Constructor requires 'new' operator, which usually means you used the next/image Image component without importing it at the top.

Author: [Flavio Copes](https://flaviocopes.com/about/) | Published: 2021-07-09 | Topics: [Next.js](https://flaviocopes.com/tags/next/) | Canonical: https://flaviocopes.com/nextjs-fix-constructor-requires-new-operator/

I got this error while working with [Next.js](https://flaviocopes.com/nextjs/): 

```
TypeError: Constructor requires 'new' operator
```

Turns out I used the `<Image />` component provided by `next/image` but I forgot to import it on top:

```js
import Image from 'next/image'
```

It can be tricky especially if you are moving some JSX around components.
