-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
glob.hasMagic is not a function #637
Comments
Related: #622 What does the automatic dependency installation look like for you? |
I removed protobufjs and then re-installed npm remove protobufjs npm install // letting my package.json do the work C:\Users\eric_hallander\git\MPXSCore>npm install
MPXSCore@0.0.1 C:\Users\eric_hallander\git\MPXSCore C:\Users\eric_hallander\git\MPXSCore>node_modules.bin\pbjs Consolidates imports and converts between file formats. -t, --target Specifies the target format. Also accepts a path to require a custom target. Generates TypeScript definitions from annotated JavaScript files. C:\Users\eric_hallander\git\MPXSCore>ant |
Hmm, it should really install more than just "tmp". Code locations: Any idea? |
Without looking too deep at the code, I wonder if it doesn't load because in some other package I have loaded, glob is loaded, and your check sees that and doesn't load it itself. For Example, (ignore the glob under protobufjs because this is there because I ran npm install within protobufjs), I have glob at the root node_modules level, but pbjs doesn't see it unless it lies within the protobufjs's node_modules?? $ find node_modules/ -type d -name glob -print eric_hallander@EAT-HALLANDER-2 ~/git/MPXSCore |
Further evidence for my last statement $ find node_modules/ -maxdepth 2 -type d ( -name glob -or -name chalk -o -name node_modules/@types/glob The only package missing at depth 2 is 'tmp' package. :) Hope that helps. |
That'd imply that If this assumption isn't correct, this could be happening because
But that's again a long-shot. Last but not least Need to test. |
Or maybe it's something entirely different: Does the |
It apparently does not :). It appears to be a much older version 3.2.11 where as protobufjs loads 7.1.1 |
I now added semver to CLI dependencies. This one is installed without a version check, but everything else is semver-checked now. Give it a shot! If it now uses an outdated semver that does not support carets (^) or something, it'd still be possible to install semver first if not at least a major version of 5 is present, and then do the rest. |
:) Bingo!! Output from pbjs C:\Users\eric_hallander\git\MPXSCore>node_modules.bin\pbjs and it ran just fine. Thanks |
protobuf.js version: <6.4.5>
After updating/upgrading to 6.4.5 this issue keeps re-surfacing. I am solving by running npm install from my node_modules/protobufjs directory
Cheers
The text was updated successfully, but these errors were encountered: