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

gatsby-remark-images does not work #2912

Closed
bradennapier opened this issue Nov 14, 2017 · 5 comments · May be fixed by tejzpr/gatsby#61
Closed

gatsby-remark-images does not work #2912

bradennapier opened this issue Nov 14, 2017 · 5 comments · May be fixed by tejzpr/gatsby#61
Labels
stale? Issue that may be closed soon due to the original author not responding any more. type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@bradennapier
Copy link

As posted in my other comment, gatsby-remark-images does not appear to work. Works fine in dev but it does not work in production.

6:38:47 PM: success delete html files from previous builds — 0.040 s
6:38:47 PM: success open and validate gatsby-config.js — 0.005 s
6:38:47 PM: success copy gatsby files — 0.024 s
6:38:47 PM: success onPreBootstrap — 0.007 s
6:38:47 PM: success source and transform nodes — 0.229 s
6:38:47 PM: error Plugin gatsby-transformer-remark returned an error
6:38:47 PM: 

  Error: Cannot find module '../build/Release/sharp.node'
  
  - module.js:11 require
    internal/module.js:11:18
  
  - constructor.js:8 Object.<anonymous>
    [repo]/[sharp]/lib/constructor.js:8:15
  
  - module.js:11 require
    internal/module.js:11:18
  
  - index.js:3 Object.<anonymous>
    [repo]/[sharp]/lib/index.js:3:15
  
6:38:48 PM: success building schema — 0.337 s
6:38:48 PM: success createLayouts — 0.010 s
6:38:48 PM: Create Pages
6:38:48 PM: error Plugin default-site-plugin returned an error
6:38:48 PM: 

  Error: 
6:38:48 PM: success createPages — 0.018 s
6:38:48 PM: success createPagesStatefully — 0.005 s
6:38:48 PM: success onPreExtractQueries — 0.001 s
6:38:48 PM: error Plugin gatsby-transformer-remark returned an error
6:38:48 PM: 

  Error: Cannot find module '../build/Release/sharp.node'
  
  - module.js:11 require
    internal/module.js:11:18
  
  - constructor.js:8 Object.<anonymous>
    [repo]/[sharp]/lib/constructor.js:8:15
  
  - module.js:11 require
    internal/module.js:11:18
  
  - index.js:3 Object.<anonymous>
    [repo]/[sharp]/lib/index.js:3:15
  
6:38:48 PM: success update schema — 0.174 s
6:38:48 PM: GraphQL Error There was an error while compiling your site's GraphQL queries.
  Invariant Violation: GraphQLParser: Unknown field `html` on type `MarkdownRemark`. Source: document `MarkdownPageByPath` file: `GraphQL request`.
6:38:48 PM: success extract queries from components — 0.053 s
6:38:48 PM: success run graphql queries — 0.003 s
6:38:48 PM: success write out page data — 0.001 s
6:38:48 PM: success write out redirect data — 0.001 s
6:38:49 PM: success onPostBootstrap — 0.001 s
@MrToph
Copy link

MrToph commented Nov 22, 2017

Same here, seems to be an issue with sharp. Are you on windows?

Could fix it following the steps here

@phanorcoll
Copy link

I having the same issue, but I'm using linux, cant seem to find the fix

@MrSaints
Copy link

MrSaints commented Jun 13, 2018

It doesn't work on MacOS. That is, it doesn't seem to be doing anything.

It is probably because I am using an absolute path / URL.

@kakadiadarpan kakadiadarpan added the type: question or discussion Issue discussing or asking a question about Gatsby label Sep 27, 2018
@kakadiadarpan
Copy link
Contributor

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub issues, we have to clean some of the old issues as many of them have already been resolved with the latest updates.

Please make sure to update to the latest Gatsby version and check if that solves the issue. Let us know if that works for you by adding a comment 👍

@kakadiadarpan kakadiadarpan added the stale? Issue that may be closed soon due to the original author not responding any more. label Sep 27, 2018
@kakadiadarpan
Copy link
Contributor

This issue is being closed because there hasn't been any activity for at least 30 days. Feel free to open a new one if you still experience this problem 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale? Issue that may be closed soon due to the original author not responding any more. type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants