Skip to content

pgAdmin can't render import/export servers menu prompt (Something went wrong) #9972

@KijongHan

Description

@KijongHan

Please note that security bugs or issues should be reported to security@pgadmin.org.

Describe the bug
The react-checkbox-tree v2 release added "type": "module" to its package.json, which is making webpack treat its UMD bundle (lib/index.js) as ESM and ignore the module.exports assignment. Its possibly related to the recent changes in pgadmin to update this dependency to use v2

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Tools' in top bar
  2. Click on 'Import servers'
  3. See the error

Expected behavior

No errors when rendering CheckBoxTree component

Error message

Error: Element type is invalid: expected a string
CheckBoxTree.jsx: 68
(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.

Screenshots

Image

Desktop (please complete the following information):

  • OS: macOS Tahoe
  • pgAdmin version: latest from main
  • Mode: Desktop
  • Browser (if running in server mode): chrome
  • Package type: Docker Container

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions