question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect `reportWebpackWarnings` usage

See original GitHub issue

Description

gatsby develop works fine but gatsby build throws error failed Building production JavaScript and CSS bundles

failed Building production JavaScript and CSS bundles - 10.208s

 ERROR #98123  WEBPACK

Generating JavaScript bundles failed

Cannot read property 'split' of undefined

Repo Link: https://github.com/rnmKeshav/portfolio

Steps to reproduce

npm install
npm run build

Expected result

Build should pass successfully

Actual result

> gatsby build

success open and validate gatsby-configs - 0.053s
success load plugins - 0.449s
success onPreInit - 0.021s
success initialize cache - 0.004s
success copy gatsby files - 0.056s
success onPreBootstrap - 0.013s
success createSchemaCustomization - 0.008s
success Checking for changed pages - 0.001s
success source and transform nodes - 0.194s
success building schema - 0.294s
info Total nodes: 127, SitePage nodes: 1 (use --verbose for breakdown)
success createPages - 0.003s
success Checking for changed pages - 0.001s
success createPagesStatefully - 0.041s
success update schema - 0.044s
success onPreExtractQueries - 0.001s
success extract queries from components - 3.498s
success write out redirect data - 0.005s
success Build manifest and related icons - 0.040s
success onPostBootstrap - 0.044s
info bootstrap finished - 6.547s
success run page queries - 0.017s - 5/5 298.88/s
success write out requires - 0.005s
failed Building production JavaScript and CSS bundles - 10.208s

 ERROR #98123  WEBPACK

Generating JavaScript bundles failed

Cannot read property 'split' of undefined


npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! portfolio@1.0.0 build: `gatsby build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the portfolio@1.0.0 build script.

Environment

System: OS: macOS 11.3.1 CPU: (12) x64 Intel® Core™ i7-9750H CPU @ 2.60GHz Shell: 5.8 - /bin/zsh Binaries: Node: 14.15.0 - ~/.nvm/versions/node/v14.15.0/bin/node npm: 6.14.8 - ~/.nvm/versions/node/v14.15.0/bin/npm Languages: Python: 2.7.16 - /usr/bin/python Browsers: Chrome: 90.0.4430.212 Safari: 14.1 npmPackages: gatsby: 3.2.1 => 3.2.1 gatsby-cli: 3.5.0 => 3.5.0 gatsby-plugin-google-analytics: 3.3.0 => 3.3.0 gatsby-plugin-image: 1.3.0 => 1.3.0 gatsby-plugin-manifest: 3.5.0 => 3.5.0 gatsby-plugin-react-helmet: 4.5.0 => 4.5.0 gatsby-plugin-sass: 4.3.0 => 4.3.0 gatsby-plugin-sharp: 3.3.0 => 3.3.0 gatsby-source-filesystem: 3.3.0 => 3.3.0 gatsby-transformer-sharp: 3.3.0 => 3.3.0 npmGlobalPackages: gatsby-cli: 3.5.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
KyleAMathewscommented, May 19, 2021

I put up a PR which should fix the issue https://github.com/gatsbyjs/gatsby/pull/31489

0reactions
github-actions[bot]commented, Jun 9, 2021

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks for being a part of the Gatsby community! 💪💜

Read more comments on GitHub >

github_iconTop Results From Across the Web

[docs] Change Algolia search implementation - JavaScript material-ui
[x] I have searched the issues of this repository and believe that this is not a duplicate. Summary. Redo the integration with Algolia's...
Read more >
Renovate Bot Package Diff
utils/dev-ssr/render-dev-html`)\n // Make sure we use the latest version during ... false, warnings: true })\n reportWebpackWarnings(rawMessages.warnings, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found