#ReferenceError: document is not defined

10 messages ยท Page 1 of 1 (latest)

lapis remnant
#

I am getting the following errors on 'npm run build'. Does anyone know the fix? Please let me know becuase i could not find any solution.

Error Message:

sage willow
#

oh, I think you shoud delete the page.js

lapis remnant
#

I did that but still having the same issue.

burnt perch
lapis remnant
#

problem lies within this line because without it its working fine ..<Lottie options={defaultOptions} height={200} width={400} />

#

const defaultOptions = {
loop: copied,
autoplay: copied,
animationData,
rendererSettings: {
preserveAspectRatio: "xMidYMid slice",
},
};

burnt perch
lapis remnant
#

you are right ....its working now...thank you for your help.

burnt perch
#

Awesome, happy to help! ๐Ÿ˜„

fiery lintel
#

Thanks! it worked flawlessly