Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have added my backend to heroku and my frontend to netlify, however when I'm trying to run my app whether it is locally or via netlify,
I'm getting the below error message when logging in or/and registering locally:

Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

I'm getting the below error message when logging in or/and registering via netlify

Uncaught Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=object&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    React 11
    S scheduler.production.min.js:13
    T scheduler.production.min.js:14


What I have tried:

i tried to uninstal node-moudels, redoing the whole process of adding it to netlify, deleting the build and reinstalling it, but no luck,
it has been working fine until i added it to netlify
now, both are not working, locally and via netlify
please help me out
Posted
Comments
Richard Deeming 9-Sep-22 4:02am    
If you follow the link from the error message, you will see:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

So there's a problem with your code. We can't help you fix it, since you haven't shown us any of your code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900