Skip to content

Conversation

santiagopuerta
Copy link
Contributor

Instala gatsby-redirect-from #96

@santiagopuerta
Copy link
Contributor Author

Está fallando "gatsby-redirect-from" al iniciar el servidor.

ERROR #11321  PLUGIN

"gatsby-redirect-from" threw an error while running the createPages lifecycle:

Cannot read properties of undefined (reading 'q')

  43 |       }
  44 |
> 45 |       const allPosts = result.data.q.edges;
     |                                    ^
  46 |       const redirects = []; // For all posts with redirect_from frontmatter,
  47 |       // extract all values and push to redirects array
  48 |

File: node_modules/gatsby-redirect-from/gatsby-node.js:45:36

Voy a mirar cómo solucionar esto.

@dukebody
Copy link
Contributor

dukebody commented Nov 1, 2022

@santiagopuerta has avanzado algo esto?

@santiagopuerta
Copy link
Contributor Author

santiagopuerta commented Nov 1, 2022

@santiagopuerta has avanzado algo esto?

Me quedé un poco bloqueado con ese error es la primera vez que me enfrento a gatsby. Lo tengo presente, pero ando muy liado estos días. Intento solucionarlo esta semana. Perdón por no darle solución aún.

@dukebody tu controlas de gatsby? por si me puedes ayudar un poco :)

@dukebody
Copy link
Contributor

dukebody commented Nov 1, 2022

@santiagopuerta tiene pinta de que hay alguna incompatibilidad de versiones. ¿Has mirado esto? ¿Has buscado el error en Google?

@santiagopuerta
Copy link
Contributor Author

@santiagopuerta tiene pinta de que hay alguna incompatibilidad de versiones. ¿Has mirado esto? ¿Has buscado el error en Google?

Busqué y probé con otras versiones pero no funcionó. Creo que falta algo dentro de la promesa del createPages.

@santiagopuerta
Copy link
Contributor Author

santiagopuerta commented Nov 12, 2022

@dukebody he usado el módulo gatsby-plugin-client-side-redirect y no da ningún conflicto. El comando gatsby build construye correctamente.

@Javinator9889 Javinator9889 self-requested a review July 24, 2024 16:34
@Javinator9889
Copy link
Collaborator

I had a look at it and seems to be OK. Was it tested? I'm going to clone it and check if the behavior is the intended one.

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

Successfully merging this pull request may close these issues.

3 participants