LottieFiles / lottie-js

An object model for representing and manipulating the Lottie JSON structure in JS.
MIT License
147 stars 19 forks source link

Importing to Next.js project not working #32

Closed kedareddy closed 2 years ago

kedareddy commented 2 years ago

Overview

When importing library to Next.js project to work with Lottie-react I get the below error.

./node_modules/@lottiefiles/lottie-js/dist/index.umd.js 6:1131 Module parse failed: Unexpected token (6:1131) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

I don't think this is a bug, but I would appreciate any assistance with importing this library into a Next.js project.