Skip to content

Conversation

@pieh
Copy link
Contributor

@pieh pieh commented Apr 7, 2025

Description

Seems like most recent webpack release (5.99.0) is causing errors in produced query-engine:

  ReferenceError: isNonNullType is not defined
 
  - index.js:89893 detectCycleRecursive
    /tmp/tmp.4RDvdYSxaA/e2e-tests/production-runtime/.cache/query-engine/index.j    s:89893:7
  
  - index.js:89550 validateTypes
    /tmp/tmp.4RDvdYSxaA/e2e-tests/production-runtime/.cache/query-engine/index.j    s:89550:7
  
  - index.js:89327 validateSchema
    /tmp/tmp.4RDvdYSxaA/e2e-tests/production-runtime/.cache/query-engine/index.j    s:89327:3
  
  - index.js:89340 assertValidSchema
    /tmp/tmp.4RDvdYSxaA/e2e-tests/production-runtime/.cache/query-engine/index.j    s:89340:18
  
  - index.js:94638 validate
    /tmp/tmp.4RDvdYSxaA/e2e-tests/production-runtime/.cache/query-engine/index.j    s:94638:72
  
  - index.js:264992 GraphQLRunner.validate
    /tmp/tmp.4RDvdYSxaA/e2e-tests/production-runtime/.cache/query-engine/index.j    s:264992:36
  
  - index.js:265077 GraphQLRunner.query
    /tmp/tmp.4RDvdYSxaA/e2e-tests/production-runtime/.cache/query-engine/index.j    s:265077:14
  
  - index.js:287370 doRunQuery
    /tmp/tmp.4RDvdYSxaA/e2e-tests/production-runtime/.cache/query-engine/index.j    s:287370:42
  
  - index.js:287388 async GraphQLEngine.runQuery
    /tmp/tmp.4RDvdYSxaA/e2e-tests/production-runtime/.cache/query-engine/index.j    s:287388:14
  
  - async Promise.all
  
  - index.js:81269 async getData
    /tmp/tmp.4RDvdYSxaA/e2e-tests/production-runtime/.cache/page-ssr/index.js:81    269:5
  
  - serve.js:187 
    [production-runtime]/[gatsby]/dist/commands/serve.js:187:28

( for example https://app.circleci.com/pipelines/github/gatsbyjs/gatsby/94868/workflows/7fb9956e-5fbf-4fc5-94e9-fe0394b7af33/jobs/1170043 )

Documentation

Tests

Related Issues

@pieh pieh added topic: webpack/babel Webpack or babel topic: render-mode Related to Gatsby's different rendering modes labels Apr 7, 2025
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 7, 2025
@pieh pieh removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 7, 2025
@pieh pieh marked this pull request as ready for review April 7, 2025 16:34
@pieh pieh merged commit dae8081 into master Apr 7, 2025
38 checks passed
@pieh pieh deleted the fix/pin-webpack branch April 7, 2025 16:43
@github-project-automation github-project-automation bot moved this to To cherry-pick in V5 Release hotfixes Apr 7, 2025
pieh added a commit that referenced this pull request Apr 7, 2025
* fix: pin webpack

* fix: origin.module can be null now

(cherry picked from commit dae8081)
@pieh pieh moved this from To cherry-pick to Backport PR opened in V5 Release hotfixes Apr 7, 2025
pieh added a commit that referenced this pull request Apr 7, 2025
* fix: pin webpack

* fix: origin.module can be null now

(cherry picked from commit dae8081)

Co-authored-by: Michal Piechowiak <[email protected]>
@pieh pieh moved this from Backport PR opened to Backported in V5 Release hotfixes Apr 7, 2025
@pieh pieh moved this from Backported to Published in V5 Release hotfixes Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: render-mode Related to Gatsby's different rendering modes topic: webpack/babel Webpack or babel

Projects

Status: Published

Development

Successfully merging this pull request may close these issues.

3 participants