-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
bugIssue was opened via the bug report template.Issue was opened via the bug report template.
Description
What version of Next.js are you using?
10.1.4-canary.17
What version of Node.js are you using?
16.0.0
What browser are you using?
Chrome 90.0.4430.85
What operating system are you using?
macOS (Apple M1 w/ Big Sur 11.3)
How are you deploying your application?
Local only
Describe the Bug
Starting from a fresh create-next-app, I place a PNG or JPG image into the public folder, then add a <Image src="/myPngImage.png" layout="fill" /> to my index.js.
After the hot-reload completes, the dev server quits and gives me this error:
zsh: segmentation fault npm run dev
Expected Behavior
Image should appear and dev server should continue to run.
To Reproduce
- In the terminal, run
create-next-app myApp&& cd myApp - Add a
pngorjpegimage to your project's public folder - In
index.js, add<Image src="/yourImage.png" layout="fill" /> - In the terminal, run
npm run devand wait until everything has compiled completely - From your browser, access
localhost:3000 - The image may to show up on the first load, so refresh the page
alexclaydon, george1410, renansigolo, rajtslegr, berkesandras and 8 more
Metadata
Metadata
Assignees
Labels
bugIssue was opened via the bug report template.Issue was opened via the bug report template.