Skip to content

Module not found with nextjs turbopack #126

@chetra-seng

Description

@chetra-seng

Describe the bug
I just started using lottie-react with the latest Nextjs. However, I got module not found error. After further inspection, it seems be caused by --turbopack flag in running script. Removing the flag works fine.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new Nextjs app with turbopack
  2. Make sure to check for --turbopack for dev and build scripts
  3. Install lottie-react
  4. import Lottie from "lottie-react"; and the error will appear

Expected behavior
It should be working normally with turbopack enabled

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions