Skip to content

babel-runtime is throwing an error while running npm run build #177

@prachit07

Description

@prachit07

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

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