FIX: modDir pathname. delete first / from pathname#5
FIX: modDir pathname. delete first / from pathname#5VanyaMate wants to merge 1 commit intofirebolt-dev:mainfrom
Conversation
|
Unfortunately, such errors occur in other parts as well. For example, I cannot start the server for the same reason via npm run dev. |
|
Thanks for digging in and having a look! Are you able to help me out a bit, I don't have access to windows right now:
I just want to check what the discrepancies for these are on windows vs osx, then I should be able to fix it. There are a few places we rely on |
|
@ashconnell Hi, sorry, I didn't notice the message right away. Yes, sure. import.meta.url: And because of the "\" at the beginning of \C:\dev... i get this error where C:\ is added to the beginning again but if you remove the "\" the paths become normal and there is no error. Similar problems are found in other places. For the same reason I can't start the dev server, for example. |







Hello. I tried to create the application using npm create firebolt@latest but failed due to an error with the paths.
When calling new URL('.', import.meta.url).pathname, I received a path that starts with the "/" character. Because of this, in the future, with path.join, the disk was added to the beginning again.

If you remove the "/" the error disappears and everything works.
