404 - Page Not Found
I have setup everything and connect it with wordpress database and it have been executing data as following
Executing (default): SELECT
wp_terms.*,wp_term_relationships.object_idASwp_term_relationships.object_id,wp_term_relationships.term_taxonomy_idASwp_term_relationships.term_taxonomy_id,wp_term_relationships.term_orderASwp_term_relationships.term_order,wp_term_relationships.wp_post.idASwp_term_relationships.wp_post.id,wp_term_relationships.wp_post.post_authorASwp_term_relationships.wp_post.post_author,wp_term_relationships.wp_post.post_titleASwp_term_relationships.wp_post.post_title,wp_term_relationships.wp_post.post_contentASwp_term_relationships.wp_post.post_content,wp_term_relationships.wp_post.post_excerptASwp_term_relationships.wp_post.post_excerpt,wp_term_relationships.wp_post.post_statusASwp_term_relationships.wp_post.post_status,wp_term_relationships.wp_post.post_typeASwp_term_relationships.wp_post.post_type,wp_term_relationships.wp_post.post_nameASwp_term_relationships.wp_post.post_name,wp_term_relationships.wp_post.post_parentASwp_term_relationships.wp_post.post_parent,wp_term_relationships.wp_post.menu_orderASwp_term_relationships.wp_post.menu_order,wp_term_relationships.wp_post.wp_postmeta.meta_idASwp_term_relationships.wp_post.wp_postmeta.meta_id,wp_term_relationships.wp_post.wp_postmeta.post_idASwp_term_relationships.wp_post.wp_postmeta.post_id,wp_term_relationships.wp_post.wp_postmeta.meta_keyASwp_term_relationships.wp_post.wp_postmeta.meta_key,wp_term_relationships.wp_post.wp_postmeta.meta_valueASwp_term_relationships.wp_post.wp_postmeta.meta_valueFROM (SELECTwp_terms.term_id,wp_terms.name,wp_terms.slug,wp_terms.term_groupFROMwp_termsASwp_termsWHEREwp_terms.slug= 'primary-navigation' LIMIT 1) ASwp_termsLEFT OUTER JOINwp_term_relationshipsASwp_term_relationshipsONwp_terms.term_id=wp_term_relationships.term_taxonomy_idLEFT OUTER JOINwp_postsASwp_term_relationships.wp_postONwp_term_relationships.object_id=wp_term_relationships.wp_post.idLEFT OUTER JOINwp_postmetaASwp_term_relationships.wp_post.wp_postmetaONwp_term_relationships.wp_post.id=wp_term_relationships.wp_post.wp_postmeta.post_id; Executing (default): SELECTid,post_author,post_title,post_content,post_excerpt,post_status,post_type,post_name,post_parent,menu_orderFROMwp_postsASwp_postsWHEREwp_posts.post_status= 'publish' ANDwp_posts.post_name= 'homepage' LIMIT 1;
and when i run localhost:3000 i get 404 - Page Not Found i have removed the NotFound layout from Layouts.js and i got the message that
Uncaught TypeError: Cannot read property 'Component' of undefined at WordExpressPage.render (webpack-internal:///962:55) at eval (webpack-internal:///577:793) at measureLifeCyclePerf (webpack-internal:///577:73) at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (webpack-internal:///577:792) at ReactCompositeComponentWrapper._renderValidatedComponent (webpack-internal:///577:819) at ReactCompositeComponentWrapper._updateRenderedComponent (webpack-internal:///577:743) at ReactCompositeComponentWrapper._performComponentUpdate (webpack-internal:///577:721) at ReactCompositeComponentWrapper.updateComponent (webpack-internal:///577:642) at ReactCompositeComponentWrapper.receiveComponent (webpack-internal:///577:544) at Object.receiveComponent (webpack-internal:///87:122)
i think that's why 404 - Page Not Found was showing so i have try to define the component but i stuck with this message