Export encountered errors on following paths: /home/page: /home error Command failed with exit code 1.
thats the error message i get from the console when i try to build , and i think its caused by the presence of the form, when i remove the form it works
ive tried putting the form int a different page, it works in dev mode but not o build
"use client";
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 "./HomeCard";
import PostForm from "../../components/myComponents/global/PostForm";
import { useContext } from "react";
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;