#I'm getting this ERROR message Element type is invalid expected a string (for built-in components)

23 messages · Page 1 of 1 (latest)

remote heart
#

can you share the code? it looks like you are using variables that don't exist in the code

ancient gate
#

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

remote heart
#

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

ancient gate
#

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)

remote heart
#

like changing the return to return <div /> it still gives you the error?

ancient gate
#

yeah, I still get the error, what do you mean by changing the return to return </div>? I'm unsure what this means

ancient gate
remote heart
#

replace all the jsx with just a plain div

#

if you still receive the error then its probably somewhere else

ancient gate
#

this is the only other page that I dont have cancelled out (//)