Export encountered errors on following paths: /home/page: /homeerror Command failed
Unanswered
American Bobtail posted this in #help-forum
American BobtailOP
im having a problem with my react app, it works in dev mode but i get the error Export encountered errors on following paths:
/home/page: /home
error Command failed with exit code 1. when i run build. this is my Form Component and
"use client";
import React, { useContext } from "react";
import Category from "@/components/myComponents/global/Category";
import Navbar from "@/components/myComponents/global/Navbar";
import Subscribe from "@/components/myComponents/global/Subscribe";
import Sidebar from "@/components/myComponents/global/Sidebar";
import HomeCard from "../../components/myComponents/global/HomeCard";
import PostForm from "@/components/myComponents/global/PostForm";
import { ModalContext, ModalContextProp } from "@/state/context/modalContext";
const Page = () => {
const { openJotter } = useContext(ModalContext) as ModalContextProp;
return (
<main className="relative">
{openJotter && <PostForm />}
<Navbar />
<section className="px-6 pt-24">
<Category />
<div className="gap-10 pt-20 mb-5 md:flex">
<div className="md:basis-3/5 lg:basis-3/4">
{/* posts */}
<HomeCard />
<div className="hidden md:block">
<Subscribe />
</div>
</div>
<div className="md:basis-2/5 lg:basis1/4">
<Sidebar type="home" />
</div>
</div>
</section>
</main>
);
};
export default Page;
/home/page: /home
error Command failed with exit code 1. when i run build. this is my Form Component and
"use client";
import React, { useContext } from "react";
import Category from "@/components/myComponents/global/Category";
import Navbar from "@/components/myComponents/global/Navbar";
import Subscribe from "@/components/myComponents/global/Subscribe";
import Sidebar from "@/components/myComponents/global/Sidebar";
import HomeCard from "../../components/myComponents/global/HomeCard";
import PostForm from "@/components/myComponents/global/PostForm";
import { ModalContext, ModalContextProp } from "@/state/context/modalContext";
const Page = () => {
const { openJotter } = useContext(ModalContext) as ModalContextProp;
return (
<main className="relative">
{openJotter && <PostForm />}
<Navbar />
<section className="px-6 pt-24">
<Category />
<div className="gap-10 pt-20 mb-5 md:flex">
<div className="md:basis-3/5 lg:basis-3/4">
{/* posts */}
<HomeCard />
<div className="hidden md:block">
<Subscribe />
</div>
</div>
<div className="md:basis-2/5 lg:basis1/4">
<Sidebar type="home" />
</div>
</div>
</section>
</main>
);
};
export default Page;
2 Replies
Please properly provide a picture of the error you are facing
American BobtailOP