#Need Help Resolving [Error: UNKNOWN: unknown, errno: -4094,

22 messages · Page 1 of 1 (latest)

covert surge
#

Hi everyone,

I’m currently facing an issue with my Next.js project, and I’m hoping someone can help me out. I keep getting the following error:

[Error: UNKNOWN: unknown error, open 'C:\restaurant4\.next\static\chunks\app\layout.js']
{
  errno: -4094,
  code: 'UNKNOWN',
  syscall: 'open',
  path: 'C:\\restaurant4\\.next\\static\\chunks\\app\\layout.js'
}```
eternal valeBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

covert surge
#

@eternal nexus

#

Need Help Resolving [Error: UNKNOWN: unknown, errno: -4094,

tropic prawn
#

Can you show your layout

covert surge
#

@tropic prawn ```tsx
import type { Metadata } from "next";
import localFont from "next/font/local";
import "./globals.css";
import Header from "./ui/Header";
import Footer from "./components/Footer";
import { auth } from "@/auth";
import { SessionProvider } from "next-auth/react";
import { Toaster } from "@/components/ui/sonner";
import { CartProvider } from "./lib/context/CartContext";
import "@radix-ui/themes/styles.css";
import { Theme } from "@radix-ui/themes";

const geistSans = localFont({
src: "./fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
});
const geistMono = localFont({
src: "./fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
});

export const metadata: Metadata = {
title: "My App",
description: "Generated by create next app",
};

export default async function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
const session = await auth();
return (
<SessionProvider session={session}>
<html lang="en">
<head>
<link
href="https://fonts.googleapis.com/css2?family=Anton&family=Lilita+One&family=Matemasie&display=swap"
rel="stylesheet"></link>
</head>
<body
className={${geistSans.variable} ${geistMono.variable} antialiased}>
<Theme>
<CartProvider>
<Toaster />
<Header session={session} />
<div className="max-w-7xl mx-auto">{children}</div>
<Footer />
</CartProvider>
</Theme>
</body>
</html>
</SessionProvider>
);
}

eternal nexus
#

I’m assuming you’re using npm start

covert surge
eternal nexus
#

Try deleting .next folder

covert surge
covert surge
eternal nexus
#

Your OS

covert surge
eternal nexus
#

Nope

#

I’m literally asking for your OS

covert surge
eternal nexus
#

can you share your project structure(screenshot)

#

and it can also be due to antivirus

#

Or If you have valorant, try disabling Riot Vanguard

covert surge