Skip to content
Advertisement

ERROR #98123 WEBPACK when running `npm run develop`

I would like to create a new Gatsby site using the instructions on https://www.gatsbyjs.com/docs/quick-start , so I ran:

JavaScript

Note: I didn’t change any configuration, so I’m using JavaScript (instead of TypeScript), not using a CMS, not using a styling system, and installed no additional features.

During running npm run develop, I’m getting the following error:

JavaScript

Environment:

JavaScript

I’m not sure how to debug this problem. Can anyone point me in the right direction?

Advertisement

Answer

This issue is related to your Node version (^18.0).

The issue should be resolved if you downgrade to 16, deleting your node_modules, your package-lock.json and reinstalling them again.

If that’s not an option if you need to stick to version 18 use the following resolution in your package.json:

JavaScript

Another solution is upgrading Gatsby to its latest version by:

JavaScript

More details can be found at: https://github.com/gatsbyjs/gatsby/issues/35607

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement