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(*): fix gatsby-cli dep in source-filesystem & plugin-sharp #14881

Merged
merged 5 commits into from Jun 19, 2019

Conversation

wardpeet
Copy link
Contributor

@wardpeet wardpeet commented Jun 18, 2019

Description

I forgot to add gatsby-cli as a dependency in gatsby-source-filesystem & gatsby-plugin-sharp 🤦‍♂.

Instead of adding it to dependencies we should accept it as a parameter based on the #4118 PR. This makes more sense as we probably get trouble with logging in the future.

I published some versions to test, please install the ones that are in your package.json
npm install gatsby-plugin-sharp@reporter-npm
npm install gatsby-source-contentful@@reporter-npm
npm install gatsby-source-drupal@reporter-npm
npm install gatsby-source-filesystem@reporter-npm
npm install gatsby-source-shopify@reporter-npm
npm install gatsby-source-wordpress@reporter-npm
npm install gatsby-transformer-screenshot@reporter-npm
npm install gatsby-transformer-sqip@reporter-npm

Related Issues

Fixes #14875

@wardpeet wardpeet changed the title fix(*): accept reporter through params in createRemote& queueImageResizing fix(*): fix gatsby-cli dep in source-filesystem & plugin-sharp Jun 18, 2019
@wardpeet wardpeet marked this pull request as ready for review June 18, 2019 20:14
@wardpeet wardpeet requested a review from a team as a code owner June 18, 2019 20:14
@wardpeet wardpeet requested a review from a team June 18, 2019 20:14
@MitchellCash
Copy link

I tested:

  • gatsby-plugin-sharp@reporter-npm
  • gatsby-source-filesystem@reporter-npm

Both solved the Error: Cannot find module 'gatsby-cli/lib/reporter' issue for me, as described in #14875.

KyleAMathews
KyleAMathews previously approved these changes Jun 19, 2019
Copy link
Contributor

@KyleAMathews KyleAMathews left a comment

Choose a reason for hiding this comment

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

👍

@wardpeet
Copy link
Contributor Author

wardpeet commented Jun 19, 2019

Tested using-wordpress & gatsbygram. Seems to work with gatsby-dev. Let me publish canary builds to make sure.

Successfully published:
 - gatsby-cli@2.6.11-reporter-npm.8+c1ceea076
 - gatsby@2.9.8-reporter-npm.8+c1ceea076	
 - gatsby-plugin-sharp@2.1.8-reporter-npm.8+c1ceea076
 - gatsby-source-contentful@2.0.74-reporter-npm.8+c1ceea076
 - gatsby-source-drupal@3.1.15-reporter-npm.8+c1ceea076
 - gatsby-source-filesystem@2.0.42-reporter-npm.8+c1ceea076
 - gatsby-source-shopify@2.0.40-reporter-npm.8+c1ceea076
 - gatsby-source-wordpress@3.0.68-reporter-npm.8+c1ceea076
 - gatsby-transformer-sqip@2.0.45-reporter-npm.8+c1ceea076

@wardpeet
Copy link
Contributor Author

I've tested it on the using-gatsby-image example. I've ran it with installing seperate dependendencies and nothing broke.

I tested it with NPM 😎

@wardpeet wardpeet merged commit 2594623 into gatsbyjs:master Jun 19, 2019
@wardpeet wardpeet deleted the fix/gatsby-cli-sharp-filesystem branch June 19, 2019 09:34
m-allanson added a commit that referenced this pull request Jun 19, 2019
* master: (41 commits)
  chore(release): Publish
  fix(gatsby): Normalize paths for run queries before caching (#14910)
  chore(release): Publish
  fix(gatsby-cli): add missing node-fetch dependency (#14908)
  feat(blog): Site Showcase Validator blogpost (#14855)
  chore(gatsby-remark-graphviz): add --ignore for test directory (#14906)
  fix(tutorials): rename "advanced" to "additional (#14847)
  fix(starters): update gatsby monorepo (#14886)
  chore(starters): Switch to useStaticQuery (#14857)
  chore(release): Publish
  Add status bar to bottom of screen during develop (#14874)
  chore(release): Publish
  fix(*): fix gatsby-cli dep in source-filesystem & plugin-sharp (#14881)
  docs(www): 25 Workflows - Embedding components in Markdown with MDX (#14543)
  docs(blog): add case study blog post for The Couch / Prima (#14871)
  docs(www): 25 Workflows - Adding CSS and/or Sass (#14779)
  fix(gatsby-transformer-react-docgen): always create description nodes (#14876)
  chore(release): Publish
  chore(gatsby): revert progressbar functionality (#14884)
  Revised "winning over engineering leaders" Docs page (#14830)
  ...
mxxk pushed a commit to mxxk/gatsby that referenced this pull request Jun 21, 2019
…yjs#14881)

Bring back progressbar functionality in ink and npm fixes.
@antoinerousseau
Copy link
Contributor

Hi, I'm using createRemoteFileNode in my sourceNodes node API, but now that I updated to the latest version, TypeScript wants me to provide that reporter (object)... isn't it an internal stuff for logging? It's not in the doc anyway:
https://www.gatsbyjs.org/packages/gatsby-source-filesystem/#createremotefilenode

@wardpeet
Copy link
Contributor Author

You have to pass it down but you're right about missing it in docs. Perhaps you can create an issue or a PR?

mwfrost pushed a commit to mwfrost/gatsby that referenced this pull request Apr 20, 2023
…yjs#14881)

Bring back progressbar functionality in ink and npm fixes.
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

Successfully merging this pull request may close these issues.

Error: Cannot find module 'gatsby-cli/lib/reporter'
4 participants