Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Builds failing on CI with @bundle-analyzer/gatsby-plugin #5

Open
brimtown opened this issue Dec 13, 2019 · 3 comments
Open

Builds failing on CI with @bundle-analyzer/gatsby-plugin #5

brimtown opened this issue Dec 13, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@brimtown
Copy link

brimtown commented Dec 13, 2019

We've been using the bundle-analyzer Gatsby plugin to measure build sizes on https://www.shopflamingo.com, but have recently had to disable it due to it failing in CI with "Cannot read property 'id` of null".

This is with @bundle-analyzer/gatsby-plugin v0.4.0 and gatsby v2.13.23.

CI output (during gatsby build):

...
info bootstrap finished - 6.210 s

success run static queries — 0.225 — 2/2 10.06 queries/second
error #98123 WEBPACK 

Generating JavaScript bundles failed

Bundle Analyzer - Cannot read property 'id' of null

See our docs page for more info on this error: https://gatsby.dev/issue-how-to
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Exited with code exit status 1
@azz0r
Copy link

azz0r commented Feb 26, 2020

Same issue

@jlopezxs
Copy link

jlopezxs commented Mar 3, 2020

This error is produced because a Internal Server Error of bundle-analyzer. I have the same issue. Only to provide more data:

{
	response: {
	    status: 500,
	    statusText: 'Internal Server Error',
	    headers: {
	      server: 'Cowboy',
	      connection: 'close',
	      'x-powered-by': 'Express',
	      'access-control-allow-origin': 'https://app.bundle-analyzer.com',
	      vary: 'Origin, Accept',
	      'content-type': 'application/json; charset=utf-8',
	      'content-length': '69',
	      etag: 'W/"45-El3BV6lza2tfVAM4nP1jAX3NyQ8"',
	      date: 'Tue, 03 Mar 2020 11:17:43 GMT',
	      via: '1.1 vegur'
	    },
	    config: {
	      url: 'https://api.bundle-analyzer.com/builds',
	      method: 'post',
	      data: '{"token":"xxx","bundleId":"df166f8d-63eb-4745-a1d4-b17f99be8901","branch":"master","commit":"3dafe609bf04d54c227e33e23379c0924c475f95","providerMetadata":{"name":"git","commit":"3dafe609bf04d54c227e33e23379c0924c475f95","branch":"master"},"config":null}',
	      headers: [Object],
	      transformRequest: [Array],
	      transformResponse: [Array],
	      timeout: 0,
	      adapter: [Function: httpAdapter],
	      xsrfCookieName: 'XSRF-TOKEN',
	      xsrfHeaderName: 'X-XSRF-TOKEN',
	      maxContentLength: -1,
	      validateStatus: [Function: validateStatus]
	    },
	}

@gregberge
Copy link
Member

Looks like it is linked to smooth-code/bundle-analyzer#28, any help is welcome here. If someone want to be involved in the project, send me an email to become a core contributor.

@gregberge gregberge added the bug Something isn't working label Jul 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants