Skip to content
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

process.cwd is a function, not a string #163

Closed
Axure opened this issue May 2, 2018 · 0 comments
Closed

process.cwd is a function, not a string #163

Axure opened this issue May 2, 2018 · 0 comments

Comments

@Axure
Copy link

Axure commented May 2, 2018

return isAbsolute(file) ? file : path.resolve(baseDir || process.cwd, file);

This would possibly cause errors, like:

Path must be a string. Received [Function]
TypeError: Path must be a string. Received [Function]
    at assertPath (path.js:28:11)
    at Object.resolve (path.js:1171:7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants