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 plugin usage query (Getting a Webpack Error during build) #47

Closed
tsukhu opened this issue May 15, 2018 · 3 comments
Closed

Gatsby plugin usage query (Getting a Webpack Error during build) #47

tsukhu opened this issue May 15, 2018 · 3 comments
Assignees

Comments

@tsukhu
Copy link

tsukhu commented May 15, 2018

I am trying to get the gatsby plugin working in my project and during the build I get this error

WebpackError: ENOENT: no such file or directory, open '/home/travis/build/ERS-HCL/gatsby-demo-app/.cache/data.json

It would be great if you could let me know if I am missing something here

Here is the code change for including the gatsby plugin (on the same lines as your example) https://github.com/ERS-HCL/gatsby-demo-app/commit/43cadc9f0b1f6d2726fb485ab93429629465946f

The travis build error is here https://travis-ci.org/ERS-HCL/gatsby-demo-app/builds/379160574

Thanks ,
Tarun

@addyosmani
Copy link
Contributor

Paging @KyleAMathews in case he gets a chance to help debug the gatsby plugin issues above.

@KyleAMathews
Copy link
Collaborator

Hey, the guess gatsby plugin is for v2 only of gatsby as it uses some new APIs. Please try upgrading your site to v2 and give it another go! It might be easier to start with a v2 site from scratch as we still don't have an upgrade guide for v2 (coming soon). Check out the v2 branch on the official starters e.g. http://github.com/gatsbyjs/gatsby-starter-hello-world

@tsukhu
Copy link
Author

tsukhu commented May 16, 2018

@KyleAMathews thank you for the update. Just started reading about Gatsby v2 and will be keenly following it.

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

3 participants