Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Super constructor null of ... is not a constructor in production build with Umi project #212

Open
Zeyull opened this issue Jan 14, 2025 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@Zeyull
Copy link

Zeyull commented Jan 14, 2025

What kind of problem do you need help?

My Question

My project is running normally in the local development environment; But after production build and deployment, the page throws an error at runtime
image
I suspect this may be related to the loading of certain modules, class inheritance chains, or the execution order of packaged code, but the specific reason is unknown.

What have I tried

I have tried disabling code splitting and runtime chunks, as well as forcing class and function names to be preserved, and disabling Tree Shaking, but none of them worked

package.json

image

@Zeyull Zeyull added the help wanted Extra attention is needed label Jan 14, 2025
@guoxianzhe
Copy link
Collaborator

@Zeyull Check this #206 (comment)

@Zeyull
Copy link
Author

Zeyull commented Jan 15, 2025

@Zeyull Check this #206 (comment)

@guoxianzhe Thank you for your answer, but I have not used NextJS in my project. I have also seen this issue and have used 13.5.7, 14.1.3, or 15.1.4, but the problem has not been resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants