next/image problem
Unanswered
Free 公園 posted this in #help-forum
Free 公園OP
I create a new next app with the command
I notice if I add
create-next-app then I put an image in public directory and change the default vercel image with comes with the default template but when I start npm run dev the process breaks!! it compiles but after join to the page it auto-close process.I notice if I add
unoptimized prop page loads but I wonder why it happens3 Replies
@Free 公園 I create a new next app with the command `create-next-app` then I put an image in public directory and change the default vercel image with comes with the default template but when I start `npm run dev` the process breaks!! it compiles but after join to the page it auto-close process.
I notice if I add `unoptimized` prop page loads but I wonder why it happens
you don't need to import the file, you can just do
src='/test.jpg'Alpine Dachsbracke
use directives to import or use static path as Yi Lon said