Bug
I encountered a Server Error while generating the page after clicking the "View the teaching materials" button on the landing page (home page). The error message indicates a conflict between a public file and a page file for the path /material.
Error Message
Error: A conflicting public file and page file was found for path /material https://nextjs.org/docs/messages/conflicting-public-file-page
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
DevServer.handleRequestImpl
Steps to Reproduce
- Clone the repository.
- Install the required dependencies.
- Start the local development server using
yarn dev.
- Go to the home page.
- Click on the "View the teaching materials" button.
Expected Behavior
The application should correctly serve the teaching materials page without conflicts and without generating a server error.
System Information
- OS: [e.g., Windows 11]
- Browser: [e.g., Chrome, Brave]
- Node Version: [e.g., 20.11.1]
- NPM Version: [e.g., 10.8.2]
- Corepack Version: [e.g., 0.29.3]
- Yarn Version: [e.g., 3.3.0]
Additional Context
This error occurs specifically when navigating from the home page to the teaching materials page using the button provided. The conflict seems to be between a static file in the public directory and a dynamic route in the pages directory both named material.
Bug
I encountered a
Server Errorwhile generating the page after clicking the "View the teaching materials" button on the landing page (home page). The error message indicates a conflict between a public file and a page file for the path/material.Error Message
Error: A conflicting public file and page file was found for path /material https://nextjs.org/docs/messages/conflicting-public-file-page
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
DevServer.handleRequestImpl
Steps to Reproduce
yarn dev.Expected Behavior
The application should correctly serve the teaching materials page without conflicts and without generating a server error.
System Information
Additional Context
This error occurs specifically when navigating from the home page to the teaching materials page using the button provided. The conflict seems to be between a static file in the
publicdirectory and a dynamic route in thepagesdirectory both namedmaterial.