-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
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
TypeError: Path must be a string. Received null #41
TypeError: Path must be a string. Received null #41
Comments
Ping @Siilwyn |
Thank you for reporting, I'm responsible for this change. Could you be so kind to start Edit: if you have the time I would appreciate it if you also try |
Thank you! That means the Could you try the following? console.log(
'user-home: ' + require('user-home'),
'\n',
'homedir-polyfill: ' + require('homedir-polyfill')()
); |
@Siilwyn :
|
👍 on homedir-polyfill switch |
Nice debugging ya'll, and thanks @Siilwyn for tackling this so quickly. |
Change the module that retrieves the user home directory. When on Windows the module can still return null, moving fallback logic to the config-path prevents it from returning null. Resolves #41
This issue goes a bit further than expected, the logic for falling back is already in place but was basically 'skipped'. |
After upgrading ts-node from version 3.2 to 3.3, we started having this issue on our dev server. We can't reproduce it on our mac workstations.
It seams like this is introduced by the upgrade to [email protected].
We are downgrading as it fixes our issue but I wanted to let you know...
The text was updated successfully, but these errors were encountered: