Open evik89 opened 5 years ago
<div className={App ${isDetailPage ? 'detail-page' : 'landing-page'} }>
Do you mean:
<div className={`App ${isDetailPage ? 'detail-page' : 'landing-page'}`}>
?
yes the actual code:
if (isHomePage)
return <Home />;
return (
<div className={`App ${isDetailPage ? 'detail-page' : 'landing-page'} `}>
<div className={App ${isDetailPage ? 'detail-page' : 'landing-page'} }>
Do you mean:
<div className={`App ${isDetailPage ? 'detail-page' : 'landing-page'}`}>
?
path.resolve(__dirname, 'path/to/imported/file/dir')
means it will only compile files in a folder called path/to/imported/file/dir
, which I'd assume does not exist.
path.resolve(__dirname, 'path/to/imported/file/dir')
means it will only compile files in a folder called
path/to/imported/file/dir
, which I'd assume does not exist. i tried 'root','app-folder','./app.js' neither one works
What if you remove the include
block entirely?
What if you remove the
include
block entirely?
It's giving me error for parsing css
ERROR in ./Home.js 34:8 Module parse failed: Unexpected token (34:8) You may need an appropriate loader to handle this file type. | render() { | return ( | <div className={
App
}> | hello |My Webconfig
My package.json
What am I missing here?