Skip to content

Uncaught Error: Element type is invalid:  #2

@RockyKev

Description

@RockyKev

Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

I'm using wp-env start to kick up a docker server. Uncertain if it's related.

How to recreate:

  1. Set up this project using "@wordpress/dataviews": "^4.4.0"
  2. npm i to install that newer version
  3. Visit that option page http://localhost:8888/wp-admin/upload.php?page=add-media-from-third-party-service
  4. Click on the 3 dots under Actions.
  5. The app crashes and the error appears in devtools console.

The current project is using @wordpress/dataviews 4.2.0, and that version works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions