-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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 serve doesn't work after running gatsby build #9964
Comments
Can you provide extra information, namely a repository url, if the work you're doing is not private or protected? Also the result of |
@jonniebigodes
maybe you have to comment some |
@Dogtiti can you provide the version of |
@kakadiadarpan |
@Dogtiti sorry for the late response. But i had to do some digging to reproduce your issue.
So i went on and did some more digging and for what i've seen of your code you used this as a source for your code right? const makeRequest = (graphql, request) => new Promise((resolve, reject) => {
resolve(
graphql(request).then(result => {
if (result.errors) {
reject.errors
}
})
)
return result;
}) With that piece of code you had the build will always fail. const makeRequest = (graphql, request) => new Promise((resolve, reject) => {
resolve(
graphql(request).then(result => {
if (result.errors) {
reject(reject.errors)
}
return result
})
)
}) And also was getting some issues with gatsby-plugin-offline, so for the sake of the issue i disabled and all went ok. I got your code to build and run with |
@Dogtiti did you manage to solve your issue? if so close this one or let me know so i can close it sounds good? |
@jonniebigodes I am sorry that I have not responded for so long,yeah,you can close it ,I have soved it |
Glad you resolved your issue. I'm closing this as of now. Thanks for using Gatsby 👍 |
I was following the gatsby tutorial part 9. I also had the same issue @Dogtiti reported. Like jonniebigodes advised, I reviewed the In my case, I had a |
gatsby build
and then running
gatsby serve
info gatsby serve running at: http://localhost:9000/
the page throw the error as follow image
however,the command
gatsby develop
work wellThe text was updated successfully, but these errors were encountered: