Skip to content

Commit

Permalink
Fixed no-img-element documentation snippet. (#26154)
Browse files Browse the repository at this point in the history
Module "next/image" has no exported member 'Image'.
It must be `import Image from "next/image"`
  • Loading branch information
IvanKalinin committed Jun 16, 2021
1 parent e4eed61 commit c851da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion errors/no-img-element.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ An HTML `<img>` element was used to display an image. For better performance and
Import and use the `<Image />` component:

```jsx
import { Image } from 'next/image'
import Image from 'next/image'

function Home() {
return (
Expand Down

0 comments on commit c851da2

Please sign in to comment.