![]() ![]() The import must be static so it can be analyzed at build time. webp files: import profilePic from './public/me.png'ĭynamic await import() or require() are not supported. Now, you can define the src for your image (either local or remote). To add an image to your application, import the next/image component: import Image from 'next/image'Īlternatively, you can import next/future/image if you need a component much closer to the native element: import Image from 'next/future/image'
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |