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

Issues with gatsby-source-filesystem #1711

Closed
MojoJojo86 opened this issue Aug 3, 2017 · 7 comments
Closed

Issues with gatsby-source-filesystem #1711

MojoJojo86 opened this issue Aug 3, 2017 · 7 comments

Comments

@MojoJojo86
Copy link

MojoJojo86 commented Aug 3, 2017

Hi, I've followed the examples provided in the readme but whenever I add the plugin and restart with gatsby develop, I just end up hanging in terminal on
success open and validate gatsby-config.js — 0.007 s
success copy gatsby files — 0.025 s
⠁ source and transform nodes

Not sure what else to try, Am I doing something massively wrong or is it a known issue?

This is my code from gatsby-config.js

  siteMetadata: {
    title: `Gatsby Default Starter`,
  },
  plugins: [
    `gatsby-plugin-react-helmet`,
    {
      resolve: `gatsby-source-filesystem`,
      options: {
        name: `files`,
        path: `${__dirname}/eclipse/`,
      },
    },
     `gatsby-transformer-json`
  ],
}

Any help appreciated 👍

@jquense
Copy link
Contributor

jquense commented Aug 3, 2017

The plugin can silently jsut tall if there are no files found. Make sure there are actually files at that path? (and maybe drop the trailing slash for fun)

@MojoJojo86
Copy link
Author

Think I may have sussed it. Need to be path: `${__dirname}/src/eclipse` and I dropped the trailing slash for good measure 👍

@KyleAMathews
Copy link
Contributor

We should validate that the specified path actually exists…

You want to work on that @MojoJojo86?

@KyleAMathews KyleAMathews reopened this Aug 5, 2017
@MojoJojo86
Copy link
Author

@KyleAMathews Yeah if I can figure out how to, I'd love to have a go at it! 👍

@thekevinbrown
Copy link
Contributor

I think I'm having this same issue. We've decided to update the KeystoneJS Docs site we're working on to the latest version, but when I run gatsby develop it hangs in the same place as above.

I checked that the folders being passed into gatsby-source-filesystem exist, and they do. How else can I help debug this?

Repro: https://github.com/keystonejs/keystone/tree/docs-upgrade-gatsby

@ccarse
Copy link

ccarse commented Nov 15, 2017

I run into this and sometimes I just have to rerun it and it works.

@KyleAMathews
Copy link
Contributor

We're now validating if the path specified exists and throwing error if not.

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

5 participants