gatsby: Gatsby v4: The argument 'path' must be a string or Uint8Array without null bytes. Received '/node_modules/es5-ext/array/\x00#/e-index-of.js

Preliminary Checks

Description

I’m upgrading Gatsby from v2 to v4, I followed the migration guide for v2 to v3 and v3 to v4. I’m seeing this error on gatsby develop

the gatsby build executes successfully.

Reproduction Link

https://github.com/adobe/parliament-client-template

Steps to Reproduce

  1. Switch to dev branch and setup a .env.development file following the instructions
  2. yarn install
  3. yarn develop …

Expected Result

localhost:8000 should spin up the site.

Actual Result

Generating development JavaScript bundle failed

The argument ‘path’ must be a string or Uint8Array without null bytes. Received ‘/Users/hireshah/parliament-client-template/node_modules/es5-ext/array/\x00#/e-index-of.js’

Environment

OS: Mac OS
Node: 16.x
Gatsby: 4.1.1

Config Flags

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 26 (14 by maintainers)

Most upvoted comments

@graysonhicks I created a repo to allow minimal reproduction. https://github.com/hirenoble/gatsby-v4-issue-reproduction

Just do yarn install and yarn develop to see the issue.