DEV Community

Cover image for Gatsby Develop ERROR #98123 WEBPACK, Generating SSR bundle failed
ksnyder123
ksnyder123

Posted on

Gatsby Develop ERROR #98123 WEBPACK, Generating SSR bundle failed

Hi,

I'm new to using gatsby and am attempting to follow the tutorial on gatsbyjs.org. I have been successful in downloading and setting up node.js, GIT, and installing the Gatsby CLI. The next part of the tutorial gives instructions on how to create a gatsby site using the Hello-world starter. In the Node.js command prompt I complete the following steps:

  1. Run gatsby new hello-world https://github.com/gatsbyjs/gatsby-starter-hello-world.
  2. Run cd hello-world.
  3. Run gatsby develop.

After running gatsby develop I receive the error:

ERROR #98123 WEBPACK

Generating SSR bundle failed

[BABEL] C:\Users\Kelly Snyder\hello-world.cache\develop-static-entry.js: No "exports" main resolved in C:\Users\Kelly Snyder\hello-world\node_modules\@babel\helper-compilation-targets\package.json

File: .cache\develop-static-entry.js

I have no idea what this means or how to fix it, so I was hoping to find some guidance here. Thank you!

Top comments (4)

Collapse
 
dominicfreeston profile image
Dominic Freeston • Edited

I was having similar issue and after a bunch of false starts, I've traced my own issue down to using the wrong node version. Run node --version to see which one you have. If it's older than 10 (I was on 6!), it's likely you have the same issue as me and you should be able to run

nvm install 12
then
nvm use 12
then check you've got the right version with
node --version
before trying
gatsby develop again

Collapse
 
ksnyder123 profile image
ksnyder123

I'm on version 13.10.1, no dice :(

Collapse
 
dominicfreeston profile image
Dominic Freeston

hmmm, I just tried creating a new project using the command you mentioned in your original post when using node 13 and I'm having the issue, but don't have it when I'm using 12 - have you tried going back to it? I'm not much of a web dev but I've been told previously to use a specific version of node, the newest one isn't always supported (and the gatsby tutorial uses 10)

Collapse
 
maryojo profile image
Mary Ojo

Dropping this here for anyone else who may face this issue.

One thing I tried that solved mine was "npm audit fix" immediately after "gatsby new ". Some dependencies had some issues and this fixed it.