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

pnpm and glob issue in express-openapi #861

Open
joseporto opened this issue Mar 13, 2023 · 0 comments
Open

pnpm and glob issue in express-openapi #861

joseporto opened this issue Mar 13, 2023 · 0 comments

Comments

@joseporto
Copy link

joseporto commented Mar 13, 2023

When using pnpm to install packages, the glob dependency of fs-routes is resolved to 9.2.1. Which leads to the following error when calling initialize.

TypeError: glob.sync is not a function
    at fsRoutes (/Users/joseporto/projects/nubisco/api/node_modules/.pnpm/fs-routes@12.0.0_glob@9.2.1/node_modules/fs-routes/index.ts:54:8)

By using a .pnpmfile.cjs and enforcing the glob@8.0.3, which is the version resolved by yarn, everything works well.

fs-routes clearly has an incompatibility with glob@9 due to missing glob.sync method. But checking fs-routes package.json file the dependency is declared as:

"peerDependencies": {
  "glob": ">=7.1.6"
}
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

1 participant