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

dir-glob Dependency issue #98

Closed
TomVance opened this issue Jan 9, 2019 · 9 comments
Closed

dir-glob Dependency issue #98

TomVance opened this issue Jan 9, 2019 · 9 comments

Comments

@TomVance
Copy link

TomVance commented Jan 9, 2019

Hi guys just a heads up,

It looks like there is an issue with the dir-glob module which according to npm was bumped to version 2.2.0 earlier today. The package.json for this project requires it with a hat (https://github.com/sindresorhus/globby/blob/master/package.json#L59).

Looking at this project on github however it's not been updated since February 2018: https://github.com/kevva/dir-glob which looks a little suspicious.

Our builds where receiving the following error:

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined

:)

@hashar
Copy link

hashar commented Jan 9, 2019

Ditto and after some digging globby v0.8.1 ( https://github.com/sindresorhus/globby/blob/v8.0.1/package.json ) has:

{
    "dependencies": {
        "dir-glob": "^2.0.0",
    }
}

Which previously matched 2.0.0 and now matches 2.2.0.

Filled one for dir-glob in case they broke their package: kevva/dir-glob#10

Most probably globby should have a more strict version requirement for dir-glob :)

Our bug https://phabricator.wikimedia.org/T213249

@sindresorhus
Copy link
Owner

Fixed in globby@8.0.2

https://github.com/sindresorhus/globby/commits/v8-release

@mrtnbroder
Copy link

@sindresorhus the build failed though

@hashar
Copy link

hashar commented Jan 9, 2019

8.0.2 is not yet on the npm registry https://www.npmjs.com/package/globby . But maybe it can be manually force refreshed.

@sindresorhus
Copy link
Owner

It shows there for me.

@sindresorhus
Copy link
Owner

@mrtnbroder That’s just because of some lint issues.

@hashar
Copy link

hashar commented Jan 9, 2019

Works for us now. Thank you very much.

@marswong
Copy link

@sindresorhus it proves the necessity of package-lock.json, unless u maintain every node module :)

@kevva
Copy link
Contributor

kevva commented Jan 10, 2019

@marswong, npm doesnt use the package-lock.json in modules so it wouldn't catch this. If anything, it would prevent this issue from surfacing when testing locally.

gustavderdrache added a commit to forumone/generator-web-starter that referenced this issue Feb 5, 2019
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

6 participants