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

fix(gatsby-plugin-page-creator): juggle reporter dont depend on cli #26357

Merged
merged 2 commits into from
Aug 11, 2020

Conversation

pvdz
Copy link
Contributor

@pvdz pvdz commented Aug 11, 2020

Resolves an issue where something was imported from gatsby-cli without depending on it.

We'd rather not have a plugin depend on the cli directly and since the reporter is already passed on into it we'd rather juggle it forward.

Fixes #26345

@pvdz pvdz requested a review from a team as a code owner August 11, 2020 10:19
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Aug 11, 2020
@gatsby-cloud
Copy link

gatsby-cloud bot commented Aug 11, 2020

Gatsby Cloud Build Report

🚩 Your build failed. See the build logs here

Errors

Error in "/usr/src/app/www/www/node_modules/gatsby-plugin-page-creator/gatsby-node.js": Cannot find module 'gatsby-cli/lib/reporter'
Require stack:
- /usr/src/app/www/www/node_modules/gatsby-plugin-page-creator/is-valid-collection-path-implementation.js
- /usr/src/app/www/www/node_modules/gatsby-plugin-page-creator/create-pages-from-collection-builder.js
- /usr/src/app/www/www/node_modules/gatsby-plugin-page-creator/create-page-wrapper.js
- /usr/src/app/www/www/node_modules/gatsby-plugin-page-creator/gatsby-node.js
- /usr/src/app/www/www/node_modules/gatsby/dist/bootstrap/resolve-module-exports.js
- /usr/src/app/www/www/node_modules/gatsby/dist/bootstrap/load-plugins/validate.js
- /usr/src/app/www/www/node_modules/gatsby/dist/bootstrap/load-plugins/load.js
- /usr/src/app/www/www/node_modules/gatsby/dist/bootstrap/load-plugins/index.js
- /usr/src/app/www/www/node_modules/gatsby/dist/services/initialize.js
- /usr/src/app/www/www/node_modules/gatsby/dist/services/index.js
- /usr/src/app/www/www/node_modules/gatsby/dist/bootstrap/index.js
- /usr/src/app/www/www/node_modules/gatsby/dist/commands/build.js
- /usr/src/app/www/www/node_modules/gatsby/node_modules/gatsby-cli/lib/create-cli.js
- /usr/src/app/www/www/node_modules/gatsby/node_modules/gatsby-cli/lib/index.js
- /usr/src/app/www/www/node_modules/gatsby/dist/bin/gatsby.js
- /usr/src/app/www/www/node_modules/gatsby/cli.js

@gatsby-cloud-staging
Copy link

gatsby-cloud-staging bot commented Aug 11, 2020

Gatsby Cloud Build Report

🚩 Your build failed. See the build logs here

Errors

Error in "/usr/src/app/www/examples/gatsbygram/node_modules/gatsby-plugin-page-creator/gatsby-node.js": Cannot find module 'gatsby-cli/lib/reporter'
Require stack:
- /usr/src/app/www/examples/gatsbygram/node_modules/gatsby-plugin-page-creator/is-valid-collection-path-implementation.js
- /usr/src/app/www/examples/gatsbygram/node_modules/gatsby-plugin-page-creator/create-pages-from-collection-builder.js
- /usr/src/app/www/examples/gatsbygram/node_modules/gatsby-plugin-page-creator/create-page-wrapper.js
- /usr/src/app/www/examples/gatsbygram/node_modules/gatsby-plugin-page-creator/gatsby-node.js
- /usr/src/app/www/examples/gatsbygram/node_modules/gatsby/dist/bootstrap/resolve-module-exports.js
- /usr/src/app/www/examples/gatsbygram/node_modules/gatsby/dist/bootstrap/load-plugins/validate.js
- /usr/src/app/www/examples/gatsbygram/node_modules/gatsby/dist/bootstrap/load-plugins/load.js
- /usr/src/app/www/examples/gatsbygram/node_modules/gatsby/dist/bootstrap/load-plugins/index.js
- /usr/src/app/www/examples/gatsbygram/node_modules/gatsby/dist/services/initialize.js
- /usr/src/app/www/examples/gatsbygram/node_modules/gatsby/dist/services/index.js
- /usr/src/app/www/examples/gatsbygram/node_modules/gatsby/dist/bootstrap/index.js
- /usr/src/app/www/examples/gatsbygram/node_modules/gatsby/dist/commands/build.js
- /usr/src/app/www/examples/gatsbygram/node_modules/gatsby/node_modules/gatsby-cli/lib/create-cli.js
- /usr/src/app/www/examples/gatsbygram/node_modules/gatsby/node_modules/gatsby-cli/lib/index.js
- /usr/src/app/www/examples/gatsbygram/node_modules/gatsby/dist/bin/gatsby.js
- /usr/src/app/www/examples/gatsbygram/node_modules/gatsby/cli.js

Copy link
Contributor

@sidharthachatterjee sidharthachatterjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Left a minor comment.

@pvdz pvdz added type: bug An issue or pull request relating to a bug in Gatsby and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Aug 11, 2020
Copy link
Contributor

@sidharthachatterjee sidharthachatterjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@pvdz pvdz added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Aug 11, 2020
@gatsbybot gatsbybot merged commit 2cef73b into master Aug 11, 2020
@sidharthachatterjee
Copy link
Contributor

Published in gatsby@2.24.42

@LekoArts LekoArts deleted the gppc-reporter branch November 9, 2020 08:27
pragmaticpat pushed a commit to pragmaticpat/gatsby that referenced this pull request Apr 28, 2022
…atsbyjs#26357)

* fix(gatsby-plugin-page-creator): juggle reporter rather than depend on cli

* Add missing reporter type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot find module 'gatsby-cli/lib/reporter'
3 participants