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

TypeError: glob is not a function #169

Open
flavianh opened this issue Jul 31, 2023 · 1 comment
Open

TypeError: glob is not a function #169

flavianh opened this issue Jul 31, 2023 · 1 comment

Comments

@flavianh
Copy link

flavianh commented Jul 31, 2023

Hello, I came across this problem today. The problem comes from cypress-parallel/test-suites.js which imports glob using const glob = require('glob');.

There are two problems hidden behind this:

  • Since version 9, the glob function should be imported with const { glob } = require('glob');
  • The glob package is not given a version range in cypress-parallel, and it should be >=9 for this first change not to break other installations

Thanks

@ngraf
Copy link

ngraf commented Jan 22, 2024

I face the the same problem. I can't use "cypress-parallel" because of this.

Is there any workaround?

Update:
A (rather dirty) workaround for me that worked is installing old library version of glob in the project that consumes "cypress-parellal":
npm install glob@^7.2.3 --save-dev

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