Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parent directories with spaces don't seem to be supported #1375

Closed
1 of 2 tasks
Gander7 opened this issue Apr 11, 2018 · 5 comments
Closed
1 of 2 tasks

parent directories with spaces don't seem to be supported #1375

Gander7 opened this issue Apr 11, 2018 · 5 comments

Comments

@Gander7
Copy link

Gander7 commented Apr 11, 2018

  • Operating System: Windows 10 Home v1709 Build 16299.371
  • Node Version: 9.11.1
  • NPM Version: 5.6.0
  • webpack Version: 4.4.0
  • webpack-dev-server Version: 3.1.1
  • This is a bug
  • This is a modification request

Information and problem details found at
https://stackoverflow.com/questions/49763540/webpack-webpack-dev-server-react-shows-directory-listing-when-it-should-show-app

Code

Not my code, but a simple starter repo I've used for testing:
https://github.com/bradtraversy/react_webpack_starter

Expected Behavior

App runs, worked on one computer until issue was solved.

Actual Behavior

Shows Directory listing instead of app, same code/repo worked on one computer but not another. See github issue for more information.

For Bugs; How can we reproduce the behavior?

I used my C drive to isolate the issue.

mkdir "test test" // works if the directory is testtest
cd "test test"
git clone https://github.com/bradtraversy/react_webpack_starter
cd react_webpack_starter
npm install
npm start (runs webpack-dev-server --mode development --open --hot)

For Features; What is the motivation and/or use-case for the feature?

@Gander7
Copy link
Author

Gander7 commented Apr 11, 2018

workaround would be to put your project where there are no spaces in the absolute path. Unfortunately, all my projects are in my user directory (C:/Users/John Doe), which is not trivial to change :(

@Gander7
Copy link
Author

Gander7 commented Apr 11, 2018

Found it in webpack-serve as well.

They redirected the issue to possibly webpack-dev-middleware since it is a common thread and a likely place.

Any other possible thoughts, clues, or insights?

@ejnu ejnu mentioned this issue Apr 12, 2018
2 tasks
@ASafaeirad
Copy link

Same here, I've wasted 14 hours to figure out why this happening.
Just downgrade webpack-dev-server to exact v3.1.1 or remove all spaces in project path till fix.

@Gander7
Copy link
Author

Gander7 commented Apr 13, 2018

@frontendmonster yea I moved all my projects on that computer to a different root. Couldn't remove spaces because they were in my username. I'll request on all future work computers they refrain from making usernames with spaces lol

@alexander-akait
Copy link
Member

Fixed in webpack/webpack-dev-middleware@e606cf1, if somebody still have problem feel free to feedback thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants