Topic: mdbreact error when running built app
christiaan-karsavior pro asked 6 years ago
Hello. We just purchased and are using mdbreact 4.8.2 Pro with create-react-app v2 and react 16. The app works fine in development with no errors and mdbootstrap react components rendering beautifully, but my production build fails (local or deployed) to render components using mdbreact, giving this error:
mdbreact.js:15922 Uncaught TypeError: Super expression must either be null or a function, not undefined
at mdbreact.js:15922
at mdbreact.js:15921
at Object.<anonymous> (mdbreact.js:15902)
at t (mdbreact.js:15846)
at mdbreact.js:15850
at mdbreact.js:15838
at Object.e.exports (mdbreact.js:15837)
at n (mdbreact.js:14)
at Object.e.exports (mdbreact.js:15812)
at n (mdbreact.js:14)
I also notice the package is marked as 'invalid' when using `npm ls mdbreact`. I have set up per the instructions using my generated gitlab key. Please let me know if you need further information. Thanks.
Anna Morawska staff answered 6 years ago
matiaspecile free answered 5 years ago
Hi,
We are running into a similar problem, wherein components either do not work correctly or they are not rendered at all when the web-app is built using the build react-scripts script.
The issue does not appear when using the start react-scripts script.
What is the latest version of react-scripts that is supported by mdb? Your help is kindly appreciated,
-Matias
Piotr Glejzer staff commented 5 years ago
Hi,
I close this issue. I will answer the latest topic that you created.
christiaan-karsavior pro answered 6 years ago
Anna Morawska staff commented 6 years ago
No problem, thank you for reporting this to us!
Best,
Ania
Anna Morawska staff answered 6 years ago
christiaan-karsavior pro answered 6 years ago
Anna Morawska staff answered 6 years ago
christiaan-karsavior pro answered 6 years ago
Uncaught TypeError: Super expression must either be null or a function, not undefined at mdbreact.js:15919 at mdbreact.js:15918 at Object.<anonymous> (mdbreact.js:15899) at t (mdbreact.js:15843) at mdbreact.js:15847 at mdbreact.js:15835 at Object.e.exports (mdbreact.js:15834) at n (mdbreact.js:14) at Object.e.exports (mdbreact.js:15809) at n (mdbreact.js:14)
Anna Morawska staff commented 6 years ago
Yes, unfortunately, I've just checked it out and you are right. We are working on it right now, I will let you know when this will be fixed. Once again I apologize for the inconvenience.
Anna Morawska staff answered 6 years ago
"mdbreact": "git+https://oauth2:YOUR TOKEN HERE@git.mdbootstrap.com/mdb/react/re-pro.git#dev"
Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Closed
- ForumUser: Pro
- Premium support: No
- Technology: MDB React
- MDB Version: 4.7.1
- Device: PC
- Browser: Any
- OS: macOS
- Provided sample code: Yes
- Provided link: No