Skip to content
New issue

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

Document Not Defined - Lottie #66

Open
ArlinJae opened this issue Jan 6, 2024 · 1 comment
Open

Document Not Defined - Lottie #66

ArlinJae opened this issue Jan 6, 2024 · 1 comment

Comments

@ArlinJae
Copy link

ArlinJae commented Jan 6, 2024

Hi @zenorocha, seemed to be getting this error while deploying locally (doesn't seem to be a problem while working on vercel).

ReferenceError: document is not defined
    at createTag (/Users/ArlinJae/Documents/website/node_modules/lottie-web/build/player/lottie.js:30:5)
    at /Users/ArlinJae/Documents/website/node_modules/lottie-web/build/player/lottie.js:1309:20
    at /Users/ArlinJae/Documents/website/node_modules/lottie-web/build/player/lottie.js:1316:6
    at /Users/ArlinJae/Documents/website/node_modules/lottie-web/build/player/lottie.js:1533:4
    at /Users/ArlinJae/Documents/website/node_modules/lottie-web/build/player/lottie.js:2:83
    at Object.<anonymous> (/Users/ArlinJae/Documents/website/node_modules/lottie-web/build/player/lottie.js:5:3)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12) {
  type: 'ReferenceError'
}

Any clue on where I'm going wrong?

@anoopsonar30
Copy link

I ran into the same issue. I rolled my nodejs installed back to 18.x and that fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants