Multiple exercise files - space in filename
See original GitHub issue@kentcdodds/react-workshop-app
version: 2.17.0
I just copied an exercise file in the react-hooks
workshop and I noticed that we forgot to test the new feature with a space in the filename 😦
Reproduction steps:
- in the
exercise
folder of a workshop, create a file with space, e.g.01 copy.js
- restart
npm start
- in browser, select the tab with the new exercise file
Expected:
- render the file
Actual:
InvalidCharacterError: String contains an invalid character
error message
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Dealing With Spaces in Filenames in Linux - Linux Handbook
Spaces in the file names could be tricky, specially for new Linux users. Learn how to deal with them.
Read more >Handling file names with space with GNU Make - Stack Overflow
Each file name is prefixed by the target directory DATADIR and delimited by spaces. space := space += replaceQuestionBySpace = $(subst ?,$(space ......
Read more >Long filenames or paths with spaces require quotation marks
Use quotation marks when specifying long filenames or paths with spaces. For example, typing the copy c:\my file name d:\my new file name...
Read more >I'm “still afraid to use spaces in file names” years old
Spaces are nuisances that bring no benefit. At best we should use non-breaking space for filenames, but that would be even more atrocious....
Read more >Visual studio code can't CD to filename with spaces in it
Oh nevermind I figured it out its cd "Exercise Files".
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t mind this getting fixed. I’m happy you’ve found a workflow you like. It’s a shame that you have to restart the server to add new files.
Unfortunately I can’t dedicate any time to fixing this myself. But feel free to fix it later if you have the time 😃
Gotcha!
classList
methods don’t like a space (and the stack trace is much nicer withnpm run dev
) => PR comming…