You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @Jamiewarb our dotlottie-player is not meant to run on server-side.
Here is how you can resolve this issue with nuxt
create a plugin file.
/plugins/lottie-player.js
import '@dotlottie/player-component';
export default () => {}; // keep this line
Add it to nuxt.config.ts
plugins: [{src: "./plugins/lottie-player.js",mode: "client"}],vue: {compilerOptions: {isCustomElement: (tag)=>tag.startsWith("dotlottie-player"),// Also tell vue its a custom component}}
There was an issue opened in #46 about Next.js and the liberal use of the Window object.
The resolve was a
react-player
. However, we have the same issues in Nuxt.What workaround do we have for using dotlottie with Nuxt?
The text was updated successfully, but these errors were encountered: