question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 exercise with space in filename

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kentcdoddscommented, Oct 9, 2020

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 😃

0reactions
Aprillioncommented, Oct 9, 2020

Gotcha! classList methods don’t like a space (and the stack trace is much nicer with npm run dev) => PR comming…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found