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.
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.