create-react-app: Entry module not found: Error: [CaseSensitivePathsPlugin]
Hi folks,
I’m getting a compilation error after following the tutorial and running npm start
inside my-app
.
Html Webpack Plugin:
Error: Child compilation failed:
Entry module not found: Error: [CaseSensitivePathsPlugin] `C:\users\myuser\pr ojects\create-react-app\my-app\index.html` does not match the corresponding pa th on disk `Projects`.:
Error: [CaseSensitivePathsPlugin] `C:\users\myuser\projects\create-react-app\ my-app\index.html` does not match the corresponding path on disk `Projects`.
There’s some really suspicious whitespace in the middle of the path, not sure if relevant.
Environment:
Windows 10
Node version 6.4.0
npm version 3.10.7
project path, C:/Users/myuser/Projects/create-react-app/my-app (The Projects
directory has a capital P which could be relevant)
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 6
- Comments: 59 (35 by maintainers)
Ooohhh! I found why it was inconsistent 😄
I’m using git Bash, if I
It works.
If I
It doesn’t work!
Thanks to you both for cooperation.
Can you reliably reproduce this with any folder that starts with a capital letter on Windows? Maybe it’s
case-sensitive-paths-webpack-plugin
that needs a fix then.cc @Urthen for thoughts/discussion
Experienced the same issue using react-create-app and attempting to import styled from ‘styled-components’ .
Fix was as others have said moving the entire project to a lower case directory (C:\lowercase\app …etc) It was originally located at C:\Users\MyName … etc
Maybe it’s a first-time use issue. I tried to rename the ‘components’ folder back to ‘Components’ folder, and it works now.