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

Adding 'gatsby-source-filesystem' to gatsby-config.js breaks build #8319

Closed
h0rhay opened this issue Sep 19, 2018 · 7 comments
Closed

Adding 'gatsby-source-filesystem' to gatsby-config.js breaks build #8319

h0rhay opened this issue Sep 19, 2018 · 7 comments
Labels
stale? Issue that may be closed soon due to the original author not responding any more. status: needs more info Needs triaging and reproducible examples or more information to be resolved status: needs reproduction This issue needs a simplified reproduction of the bug for further troubleshooting.

Comments

@h0rhay
Copy link

h0rhay commented Sep 19, 2018

Summary

When using basic gatsby starter kits, I am repeatedly encountering problems when trying to query markdown files.

I am following the basic tutorials on the gatsby site here:
https://www.gatsbyjs.org/tutorial/part-four/#your-first-graphql-query

As soon as I install the gatsby-source-filesystem plugin and add this:

{
      resolve: `gatsby-source-filesystem`,
      options: {
        name: `src`,
        path: `${__dirname}/src/`,
      },
    }

To my gatsby-config.js..

Then the build no longer works and I get this error every time:

screen shot 2018-09-19 at 14 16 08

I have then removed all node_modules and reinstalled, but that still doesn't work.

Can anyone help with this most basic issue?

@stefanprobst
Copy link
Contributor

Could you post your complete gatsby-config.js and/or link to a repo where this happens?

@DSchau DSchau added the status: needs reproduction This issue needs a simplified reproduction of the bug for further troubleshooting. label Sep 19, 2018
@kakadiadarpan kakadiadarpan added the status: needs more info Needs triaging and reproducible examples or more information to be resolved label Sep 20, 2018
@CanRau
Copy link
Contributor

CanRau commented Sep 23, 2018

Might this happen because you add the whole src directory instead of src/pages or similar? Haven't tried it myself but I could imagine it making problems?

@chriswingler
Copy link

Are you able to install gatsby-source-filesystem? Not sure if it's related, but I have not been able to install the package and use markdown because of these errors:

 Couldn't find package "got@^7.1.0" required by "gatsby-source-filesystem" on the "npm" registry.
> info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
> Error: Couldn't find package "valid-url@^1.0.9" required by "gatsby-source-filesystem" on the "npm" registry.

@CanRau
Copy link
Contributor

CanRau commented Sep 23, 2018

@chriswingler seems to be a different situation?! Yesterday I installed 2.0.1 multiple times without any problems maybe a problem with npm, or perhaps yarn proxy/mirror? have you tried once? have you tried deleting node_modules then reinstalling everything?

And anyways imho it seems more related to yarn/npm than gatsby
maybe helpful issues yarnpkg/yarn#6029, yarnpkg/yarn#2611, yarnpkg/yarn#5508, and more

@chriswingler
Copy link

chriswingler commented Sep 24, 2018

thanks @CanRau will look into the yarn issues

edit: ended up being that python2 wasn't installed - works now on my end, but different issue.

@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 Oct 23, 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. status: needs more info Needs triaging and reproducible examples or more information to be resolved status: needs reproduction This issue needs a simplified reproduction of the bug for further troubleshooting.
Projects
None yet
Development

No branches or pull requests

6 participants