Open CTOverton opened 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.
This package doesn't seem to support server components behaviors, as suggested by nextjs documentation we'll have to wrap the Player
component inside a client-component to make it work.
"use client";
import { Player } from "@lottiefiles/react-lottie-player";
export default Player;
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.
Overview
Using lottie-react in a Next.js 13 project with typescript, using the player on a page using Next.js 13's new app directory setup, on page load there is an error.
Core error
Full error
package.json
My code
app/page.tsx
Consuming repo
My own private repo using https://github.com/LottieFiles/lottie-react
Labels
Type: Bug
label to this issue.