I am in junior in next js . Currently , my problem is that when i am running npm run build , it is showing typescript error even though i am not using in my project . I n my project I am implementation for internationalization and it works well . But when i mentioned in above , npm run build command is showing ts error . Please kindly help me .
Layout.jsx
import Sidebar from "./Sidebar/page";
import SettingFloatButton from "./Button/SettingFloatButton";
import Navbar from "./Navbar/page";
const Layout = ({ children, lang }) => {
return (
<div>
<div className="relative flex min-h-screen bg-gray-50 divide-x">
<div className="min-h-full hidden bg-white xl:block lg:block md:block">
<Sidebar lang={lang} />
</div>
<div className="flex flex-col flex-1">
<Navbar lang={lang} />
<div className="p-5 xl:p-10">
<main>{children}</main>
<SettingFloatButton lang={lang} />
</div>
</div>
</div>
</div>
);
};
export default Layout;
my folder structure
error image
Even though i changed this file to tsx , that’s not work