Help Needed: Next.jsBlank Page Issue
Unanswered
dilraba posted this in #help-forum
dilrabaOP
Hi fellas,
I'm facing a blank page issue with my Next.js app using the app router. Here are the details:
Page Component:
On inspect source there is this error,
Questions:
What's causing the blank page rendering?
How can I fix the Webpack unsupported URL scheme error?
Any help is appreciated!
Thanks!
I'm facing a blank page issue with my Next.js app using the app router. Here are the details:
Page Component:
src/app/shift-monitoring/page.tsximport { NotFoundComponent } from "@/components/NotFoundComponent";
import FramerMonitringWrapper from "@/components/pages/FramerMonitoring";
import React from "react";
import { checkJid } from "./checkJid";
type SearchParams = { jid: string };
const FrameMonitoringPage = async ({ searchParams }: { searchParams: SearchParams }) => {
const { jid } = searchParams;
const checkJIDStatus = await checkJid(jid);
if (!jid || !checkJIDStatus.status) return <NotFoundComponent />;
return <FramerMonitringWrapper jid={jid} />;
};
export default FrameMonitoringPage;checkJID Server Action Function:"use server";
import { AuthError } from "next-auth";
export async function checkJid(jid: string): Promise<{ status: boolean }> {
try {
return { status: true };
} catch (error) {
console.error("SignIn Error", JSON.stringify(error));
return { status: false };
}
}FramerMonitringWrapper Component:"use client";
import React from "react";
import MonitoringShiftPage from "@/components/pages/Monitoring/MonitoringShift";
const FramerMonitringWrapper = ({ jid }: { jid: string }) => (
<MonitoringShiftPage jid={jid} />
);
export default FramerMonitringWrapper;On inspect source there is this error,
Error: Could not load content for webpack://_N_E/src/client/app-index.tsx?b6bc (Unsupported URL scheme; HTTP error: status code 404)Questions:
What's causing the blank page rendering?
How can I fix the Webpack unsupported URL scheme error?
Any help is appreciated!
Thanks!
2 Replies
@Dwarf Hotot In the app folder first you have to create (home) like folder then add every routes folder in it
dilrabaOP
Thank you for replying. I already put the routes inside app. Finally, I manage to solve it. Turns out because of my middleware, that is excluding in the matcher. Have a nice day and cool pillows in hot days