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:
- Go to 'Tools' in top bar
- Click on 'Import servers'
- 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
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
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:
Expected behavior
No errors when rendering CheckBoxTree component
Error message
Screenshots
Desktop (please complete the following information):