Skip to content

[Bug] Unhandled runtime error when using CldImage component #227

Closed

Description

@smithmanny

Bug Report

Describe the bug

Whenever I try and use the CldImage component on my Next JS 13 site (using pages) I get an error ```Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

Check the render method of he.```

I'm using next-cloudinary 4.13.1 and also cloudinary 1.37.3 to delete images

Is this a regression?

Yes

14.12.0

Steps To Reproduce the error

  1. Install and setup next-cloudinary
  2. Add component to file and page throws error

Screenshot or Video Recording

image

Your environment

  • OS: Mac OSX 12.6
  • Node version: Node 18
  • Npm version: Yarn 1.22.19
  • Browser name and version: Brave Browser 1.52.129

Additional context

Activity

  1. colbyfayock commented on Jul 8, 2023

    @colbyfayock
    Collaborator

    hey @smithmanny glad to see it looks like you got this resolved, if this was some kind of issue with the component that i can make clear or easier to use, even if simply something in the docs, would love any feedback!

  2. smithmanny commented on Jul 8, 2023

    @smithmanny
    Author

    I found out that the problem came from updating next from 13.4.4 -> 13.4.9

  3. colbyfayock commented on Jul 8, 2023

    @colbyfayock
    Collaborator

    for anyone following along, im able to reproduce this: https://twitter.com/colbyfayock/status/1677783476014030849

    im suspecting the issue is in how tsup is bundling or theres a bug in Next.js, not totally sure on this one at the moment

  4. colbyfayock commented on Jul 8, 2023

    @colbyfayock
    Collaborator

    looks like this is a known issue: vercel/next.js#52216

  5. added a commit that references this issue on Jul 11, 2023
    f83c298
  6. github-actions commented on Jul 11, 2023

    @github-actions

    🎉 This issue has been resolved in version 4.14.1 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  7. added a commit that references this issue on Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions