Код: Выделить всё
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: Cannot read properties of undefined (reading 'entryCSSFiles')
at r_ (/mypath/Desktop/dev/interview-cat/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:127:5173)
at J.preloadCallbacks (/mypath/Desktop/dev/interview-cat/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:127:7837)
at rj (/mypath/Desktop/dev/interview-cat/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:127:8824)
at /mypath/Desktop/dev/interview-cat/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:127:6849
at /mypath/Desktop/dev/interview-cat/node_modules/next/dist/server/lib/trace/tracer.js:171:36
at NoopContextManager.with (/mypath/Desktop/dev/interview-cat/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062)
at ContextAPI.with (/mypath/Desktop/dev/interview-cat/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518)
at NoopTracer.startActiveSpan (/mypath/Desktop/dev/interview-cat/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18093)
at ProxyTracer.startActiveSpan (/mypath/Desktop/dev/interview-cat/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18854)
at /mypath/Desktop/dev/interview-cat/node_modules/next/dist/server/lib/trace/tracer.js:153:103
Export encountered an error on /(router)/page: /, exiting the build.
⨯ Static worker exited with code: 1 and signal: null
Код: Выделить всё
import ChallengeSection from '@/app/components/home/ChallengeSection';
import AdvantageSection from '@/app/components/home/AdvantageSection';
import ServicesSection from '@/app/components/home/ServicesSection';
import HeroSection from '@/app/components/home/HeroSection';
import TestimonialsSection from '@/app/components/home/TestmonialsSection';
import CTASection from '@/app/components/home/CTASection';
import Navbar from '@/app/components/navigation/NavBar';
export default function HomePage() {
return (
);
}
Код: Выделить всё
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
};
export default nextConfig;
Подробнее здесь: https://stackoverflow.com/questions/791 ... -undefined