frontend-collective / frontend-collective/react-sortable-tree

"TypeError: Super expression must either be null or a function" only in production build

Open
#850 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5k
Forks
914
PR merge metrics
No merged PRs in 30d

Description

When I create a production build, I get the issue "TypeError: Super expression must either be null or a function" and the whole application breaks. As it only happens in production builds its hard to debug.

Here some screenshots from the issue stack:
![image](https://user-images.githubusercontent.com/29328026/103631751-ac79d200-4f43-11eb-905d-a02e599e12fe.png)

![image](https://user-images.githubusercontent.com/29328026/103631782-bac7ee00-4f43-11eb-9d03-b406673003d1.png)

![image](https://user-images.githubusercontent.com/29328026/103631859-cfa48180-4f43-11eb-9e3b-b205b1b6cdc1.png)

Here the important versions I am using:
"react": "16.13.1",
"react-dom": "16.13.1",
"react-sortable-tree": "^2.8.0",
"webpack": "4.35.3"

Thanks for your help, I am trying to figure out the source of the issue since days but cant find it.
I think its source is within react-dnd in combination with webpack...

Thanks
Pascal

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.