isaacs / minimatch

a glob matcher in javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syntax error with the new version of minimatch 3.0.5

pravinsakharakar opened this issue · comments

Facing below issue during build, with the latest version of minimatch 3.0.5

/sppproj/spp/ccspp/proj/2203/UXF_2203_FULL_BUILD/omniChannel/bss/widgetstore/bb/widgetstore-client/target/classes/src/businesswidget/build/node_modules/rimraf/node_modules/glob/node_modules/minimatch/minimatch.js:4 |abc.bss.widgetstore:cm-repository-client_l3_common|
2022-02-10 18:16:54.428 [INFO] [exec] const path = (() => { try { return require('path') } catch (e) {}})() || { |abcd.bss.widgetstore:cm-repository-client_l3_common|
2022-02-10 18:16:54.428 [INFO] [exec] ^ |abc.bss.widgetstore:cm-repository-client_l3_common|
2022-02-10 18:16:54.729 [INFO] [exec] SyntaxError: Unexpected identifier |abc.bss.widgetstore:cm-repository-client_l3_common|
2022-02-10 18:16:54.729 [INFO] [exec] at Module._compile (module.js:439:25) |abc.bss.widgetstore:cm-repository-client_l3_common|

Also I see below error in the logs
Fatal error: glob dependency not found, set options.disableGlob = true if intentional |abc.cust.widgetstore:cm-repository-client_l9_common|

Please suggest on this

This broke us as well (although it's via a dependency of a dependency of a dependency). Node v0.12.18. Our version of pm2 depends on a version of shelljs, which depends on glob, which depends on ^3.0.4 of minimatch. This arguably breaks semver, IMHO.

Any way we can keep newer style syntax to a new major version of minimatch?

Duplicate of #153.