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

OAS schemas module not found #426

Open
deepansha16 opened this issue Mar 3, 2023 · 2 comments
Open

OAS schemas module not found #426

deepansha16 opened this issue Mar 3, 2023 · 2 comments

Comments

@deepansha16
Copy link

deepanshachowdhary@Deepanshas-MacBook-Pro cli % bump diff https://github.com/wicrs/docs/blob/8e0e99de1db6fb9b3d04361b80652e4972ed727b/json/swagger-resolved.json https://github.com/wicrs/docs/blob/bcfa0c9125ff5808388bc7c12aba41f76d91c153/json/swagger-resolved.json Error: Cannot find module 'oas-schemas/schemas/v2.0/schema.json' Require stack: - /usr/local/lib/node_modules/bump-cli/lib/definition.js - /usr/local/lib/node_modules/bump-cli/lib/core/diff.js - /usr/local/lib/node_modules/bump-cli/lib/commands/diff.js - /usr/local/lib/node_modules/bump-cli/node_modules/@oclif/config/lib/plugin.js - /usr/local/lib/node_modules/bump-cli/node_modules/@oclif/config/lib/config.js - /usr/local/lib/node_modules/bump-cli/node_modules/@oclif/config/lib/index.js - /usr/local/lib/node_modules/bump-cli/node_modules/@oclif/command/lib/command.js - /usr/local/lib/node_modules/bump-cli/node_modules/@oclif/command/lib/index.js - /usr/local/lib/node_modules/bump-cli/bin/run Code: MODULE_NOT_FOUND

I get the following error when I try to run bump.sh locally on my machine, I installed all the required packages, but I am not able to figure out where the error comes from. Is it a missing package on my side?

@Polo2 Polo2 self-assigned this Dec 4, 2023
@Polo2
Copy link
Member

Polo2 commented Dec 6, 2023

Hi @deepansha16 👋

First of all, sorry for the long delay for our answer, I hope this issue didn't blocked you too much.

Version 2.7.2 of bump-cli has now been released, do you still have such error with a fresh npm update -g to this version?

I also noticed that you'll need to provide URLs of raw JSON file of GitHub to process the diff:

instead of
bump diff https://github.com/wicrs/docs/blob/8e0e99de1db6fb9b3d04361b80652e4972ed727b/json/swagger-resolved.json https://github.com/wicrs/docs/blob/bcfa0c9125ff5808388bc7c12aba41f76d91c153/json/swagger-resolved.json

you should try

bump diff https://raw.githubusercontent.com/wicrs/docs/8e0e99de1db6fb9b3d04361b80652e4972ed727b/json/swagger-resolved.json https://raw.githubusercontent.com/wicrs/docs/bcfa0c9125ff5808388bc7c12aba41f76d91c153/json/swagger-resolved.json

@grossyoan
Copy link

Hi @deepansha16,

I'm reaching out to know if you still encounter an issue when trying to run the CLI?

Have a good day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants