Welcome to the Treehouse Community
Looking to learn something new?
Brice Tessier HuortCourses Plus Student 916 Points
I have an issue when restarting the webpack server. It doesn't find files in src/components.
It can't find files Scoreboard, Stopwatch etc... in
src/components/... I guess this is problem with webpack extensions or something like that... Any ideas ?
Tom Geraghty24,162 Points
Are you sure you're using the right relative paths?
'src/components/' '/src/components/' './src/components/' '../src/components/' '../../src/components/'
That'd be a good first place to check. Otherwise "turning it off and on again..."
Daniel Stephany32,056 Points
Did you move your index.js file out of src? If you are using create-react-app it looks for your index.js in the root of your src folder then the index.js should import scoreboard from within components.