#I'm getting this ERROR message Element type is invalid expected a string (for built-in components)
23 messages · Page 1 of 1 (latest)
Hi!! @remote heart I've just run into another issue thats completely hindered my work
could you help? I'm getting this message
1 of 1 unhandled error
Server Error
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've tried tracing my steps and cancelling out all my pages, I think its somethnig to do with my index page
I also get this message 'Check the render method of Home.'
my code for the index page is here
this error usually means the import of the component is wrong or its not defined as a component
check your imports and make sure they are correct
is it just my imports on the index.js page that I should check? @remote heart
I've just looked through and I can't seem to find the issue
I've also just tried deleting all my components but I still get the same message
I'm getting this ERROR message Element type is invalid expected a string (for built-in components)
you still receive the error if you remove everything the Home page is rendering?
like changing the return to return <div /> it still gives you the error?
yeah, I still get the error, what do you mean by changing the return to return </div>? I'm unsure what this means
yeah, I still get the error, what do you mean by changing the return to return </div>? I'm unsure what this means
replace all the jsx with just a plain div
if you still receive the error then its probably somewhere else
I just tried changing all the jsx with plain div and i get this
this is the only other page that I dont have cancelled out (//)