Topic: Errors since renewing GitLab access and Pro subscription
Hi,
I have recently renewed my pro subscription and access to GitLab repo.
Since then I have been facing a few issues.
While Installation,
@fortawesome/fontawesome-free/css/all.min.css
bootstrap-css-only/css/bootstrap.min.css
focus-trap-react
have been unavailable. These MDBreact imports never gave any errors previously.
I used npm install and added it to my package.json manually.
Further, after starting the project, I have been facing the following errors on a few pages:
Element type is invalid: expected a string (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.
And
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.
All these issues started while I lost access to GitLab repo. I have tried reinstalling the project, creating a new mdb pro access token, going back in my codebase to older HEADs, but couldn’t find any solution.
Are these issues created due to MDBreact? Because that’s the only thing that has been changed in my code base.
(Also, Is the premium support available in my subscription? I have just renewed my subscription and I thought it included premium support too.)
Thanks, please help. Project on hold.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 4.25.6
- Device: macbook air
- Browser: firefox
- OS: mac os
- Provided sample code: No
- Provided link: No
Piotr Glejzer staff commented 5 years ago
how to recreate your problem?
AB commented 5 years ago
Ok to simplify,I created a new page with basic text. It worked fine.
I added 'MDBBtn' component and it threw the 'invalid hook call' error as mentioned in the main question. FYI I am not making use of hooks in my project.
I tried the regular 'button' tag, it worked fine. These errors are suddenly appearing out of no where.
Piotr Glejzer staff commented 5 years ago
Did you see this topic https://reactjs.org/warnings/invalid-hook-call-warning.html ? We are using 16.12 version of react/react-dom.
AB commented 5 years ago
Got the problem solved. Deduped the react-dom version. This was never a problem before. Anyway, got it solved.
The other error still persists; I'll try to see why it causing it and get back with a specific question.
Thanks.