After upgrading babel-runtime, my project is now throwing an error in npm run build, similar to this issue, #166 (comment)
$ next build
▲ Next.js 14.2.18
- Environments: .env.local
Creating an optimized production build ...
Failed to compile.
./node_modules/react-lottie/dist/index.js
Module not found: Can't resolve 'babel-runtime/helpers/extends'
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./components/templates/GiftCard/GiftCardOrderSuccess/index.tsx
./node_modules/react-lottie/dist/index.js
Module not found: Can't resolve 'babel-runtime/core-js/object/get-prototype-of'
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./components/templates/GiftCard/GiftCardOrderSuccess/index.tsx
./node_modules/react-lottie/dist/index.js
Module not found: Can't resolve 'babel-runtime/helpers/classCallCheck'
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./components/templates/GiftCard/GiftCardOrderSuccess/index.tsx
./node_modules/react-lottie/dist/index.js
Module not found: Can't resolve 'babel-runtime/helpers/createClass'
https://nextjs.org/docs/messages/module-not-found
After upgrading babel-runtime, my project is now throwing an error in npm run build, similar to this issue, #166 (comment)