-
Notifications
You must be signed in to change notification settings - Fork 1.4k
TypeError: Path must be a string. Received null #1041
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
Comments
That's this line: var pkgDir = path.dirname(pkgConf.filepath(conf)); That changed in #925. Looks like AVA now won't start without a |
okay, |
Changing the line to this: var pkgDir;
try {
pkgDir = path.dirname(pkgConf.filepath(conf));
} catch (error) {
pkgDir = process.cwd();
} Fixed the issue for me. Good for a PR? |
Would be good if a package.json would be created in the cwd if it is not there |
I'd say that's up to you. |
Description
ava nor ava --init nor ava --version is working.
The project has no config at all and no node_modules.
ava is installed globaly
Error Message & Stack Trace
Command-Line Arguments
Copy your npm build scripts or the
ava
command used:Environment
Tell us which operating system you are using, as well as which versions of Node.js, npm, and AVA. Run the following to get it quickly:
The text was updated successfully, but these errors were encountered: