We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Double C:\ apprearing at the beginning of the path on Windows
C:\
Reported in #21
The text was updated successfully, but these errors were encountered:
This happens because we are currently using:
const __dirname = new URL('.', import.meta.url).pathname
This produces the following on Windows: /C:/Users/luciano/Desktop/stuff/ while we want C:\Users\luciano\Desktop\stuff\
/C:/Users/luciano/Desktop/stuff/
C:\Users\luciano\Desktop\stuff\
The correct way of doing this is:
import { fileURLToPath } from 'node:url' const __dirname = fileURLToPath(new URL('.', import.meta.url))
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Double
C:\
apprearing at the beginning of the path on WindowsReported in #21
The text was updated successfully, but these errors were encountered: