Closed osdiab closed 3 years ago
I suspect it might be that he's on windows and the slashes are reversed? But double checking by asking him to print out what the pagesDir value is
this is only true if you use cmd.exe
.
most people will now be using powershell by default or wsl2
~I still need to figure out why this is happening, but~ my teammate on a project is experiencing a strange issue where the
@types
folder is being placed in the src/pages directory instead of the src directory for him. Will take a look at the code and chat with him more to see if I can find out what might be going on. Related to #18EDIT: turns out i was right, slashes are reversed in windows:
the code needs to be tolerant of that, and also probably should not just be a regex replace (if
/pages
is anywhere else in the path it'll break)