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

Second build always fails #1671

Closed
Alxandr opened this issue Aug 1, 2017 · 7 comments
Closed

Second build always fails #1671

Alxandr opened this issue Aug 1, 2017 · 7 comments

Comments

@Alxandr
Copy link

Alxandr commented Aug 1, 2017

I'm not entirely sure what's causing this, but consistently, if I don't delete the .cache folder, my builds always fails with a query error Cannot query field "allTag" on type "RootQueryType"..

Deleting the .cache folder and building from "scratch" fixes the issue. Any suggesion on how I can go about figuring out what's causing this? I'm guessing the nodes aren't created but I don't know why they wouldn't be just because they are already cached.

@KyleAMathews
Copy link
Contributor

This is weird... try poking around in .cache/redux-state.json and see if there is nodes of type Tag?

@KyleAMathews
Copy link
Contributor

Also if you can create a reproducible example of this that'd be 💯 e.g. do any of the example sites exhibit this behavior?

@Alxandr
Copy link
Author

Alxandr commented Aug 5, 2017

I'll have a look. I also need to amend that it might not be the .cache folder, but the public folder. I'll do some investigating once I have time, but currently I'm just in the habit of starting using rimraf .cace public && yarn start.

@KyleAMathews
Copy link
Contributor

Any updates on this? If you're still seeing this, I'd love to take a look at your source to debug what's happening.

@Alxandr
Copy link
Author

Alxandr commented Aug 16, 2017

Sorry. I had exam this monday, and two job interviews today :P, so this has been pushed back a bit. I'll try to check if this is still an issue later today or tomorow.

@Alxandr
Copy link
Author

Alxandr commented Aug 16, 2017

image

@KyleAMathews
Copy link
Contributor

Closing out older issues. Let us know if you still need help!

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

2 participants