I’m getting an error in my project after I added the hostless lottie and lottie async components to my project.
In production, the ”lottie” page with the lottie components (only things on the page) returns a 500 Internal Server Error. Using npm run dev, it’s showing this error:
Rendering error
PLASMIC: Encountered error when pre-rendering PlasmicComponent: Error: PLASMIC: Failed to load render__5M49luM_NpTU.js: ReferenceError: document is not defined
Error: PLASMIC: Failed to load render__5M49luM_NpTU.js: ReferenceError: document is not defined
at ignore-listed frames
⨯ Error: PLASMIC: Failed to load render__5M49luM_NpTU.js: ReferenceError: document is not defined
at ignore-listed frames
⨯ Error: PLASMIC: Failed to load render__5M49luM_NpTU.js: ReferenceError: document is not defined
at ignore-listed frames {
page: '/lottie'
}
GET /lottie 500 in 75ms (compile: 65ms, render: 10ms)
Even on the homepage (a page with no lottie components), I’m now seeing this error:
