We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[email protected] dev next dev
▲ Next.js 14.1.3
✓ Ready in 4.3s ○ Compiling / ... ✓ Compiled / in 12.7s (1100 modules) ⨯ node_modules\lottie-web\build\player\lottie.js (30:0) @ createTag ⨯ ReferenceError: document is not defined at webpack_require (C:\Users\NIshanth\Desktop\New folder\portfolio.next\server\webpack-runtime.js:33:43) at webpack_require (C:\Users\NIshanth\Desktop\New folder\portfolio.next\server\webpack-runtime.js:33:43) at eval (./app/components/helper/animation-lottie.jsx:7:70) at (ssr)/./app/components/helper/animation-lottie.jsx (C:\Users\NIshanth\Desktop\New folder\portfolio.next\server\app\page.js:272:1) at webpack_require (C:\Users\NIshanth\Desktop\New folder\portfolio.next\server\webpack-runtime.js:33:43) null ✓ Compiled in 2.3s (447 modules) ○ Compiling /favicon.ico ... ✓ Compiled /favicon.ico in 844ms (682 modules)
The text was updated successfully, but these errors were encountered:
What is the fix for this?
Sorry, something went wrong.
nvm i figured out what was happening. the components need to be imported dynamically in page.js:
import dynamic from 'next/dynamic'; import { personalData } from "@/utils/data/personal-data"; // Dynamically import all components with SSR: false to avoid rendering them during SSR const HeroSection = dynamic(() => import("./components/homepage/hero-section"), { ssr: false }); const AboutSection = dynamic(() => import("./components/homepage/about"), { ssr: false }); const Experience = dynamic(() => import("./components/homepage/experience"), { ssr: false }); const Skills = dynamic(() => import("./components/homepage/skills"), { ssr: false }); const Projects = dynamic(() => import("./components/homepage/projects"), { ssr: false }); const Education = dynamic(() => import("./components/homepage/education"), { ssr: false }); const ContactSection = dynamic(() => import("./components/homepage/contact"), { ssr: false });
No branches or pull requests
▲ Next.js 14.1.3
✓ Ready in 4.3s
○ Compiling / ...
✓ Compiled / in 12.7s (1100 modules)
⨯ node_modules\lottie-web\build\player\lottie.js (30:0) @ createTag
⨯ ReferenceError: document is not defined
at webpack_require (C:\Users\NIshanth\Desktop\New folder\portfolio.next\server\webpack-runtime.js:33:43)
at webpack_require (C:\Users\NIshanth\Desktop\New folder\portfolio.next\server\webpack-runtime.js:33:43)
at eval (./app/components/helper/animation-lottie.jsx:7:70)
at (ssr)/./app/components/helper/animation-lottie.jsx (C:\Users\NIshanth\Desktop\New folder\portfolio.next\server\app\page.js:272:1)
at webpack_require (C:\Users\NIshanth\Desktop\New folder\portfolio.next\server\webpack-runtime.js:33:43)
null
✓ Compiled in 2.3s (447 modules)
○ Compiling /favicon.ico ...
✓ Compiled /favicon.ico in 844ms (682 modules)
The text was updated successfully, but these errors were encountered: