SyntaxError Octal escape sequences are not allowed in strict mode.
I have a path to a file system, but when I use ts-node, it throws an error. How should I rewrite this so that I can get the file to work?
Relevant Potion of code:
Error:
7 Replies
lmao
probably need to escape it like \01
but you should prolly not make file paths like that
the quick and dirty fix is to switch to forward slashes, or use double back slashes
dirty indeed
or honestly, just don't use a template literal, there's no reason to in this example
I tried without, same issue actually...
hm, then quick and dirty is forward slashes or double back slashes, more thorough is using something like this https://nodejs.org/api/path.html
Done, thanks!