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.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:26 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hirenoblecommented, Nov 22, 2021

@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.

0reactions
LekoArtscommented, Mar 7, 2022

Hi!

Since we didn’t receive an answer for 7 days or more about the ask of a reproduction I’m going to close this now, as we can’t do much to help without a reproduction. If you are able to create a minimal reproduction for this then please do answer here or open a new issue with a reproduction. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

The argument 'path' must be a string or Uint8Array without null ...
Renaming your project folder fixes the problem. If this does not work then move your project to other directory, it should fix the...
Read more >
v4 Release Notes - Gatsby
Welcome to gatsby@4.0.0 release (October 2021 #1). We've released Gatsby 3 in March 2021 and now have a lot of exciting new features...
Read more >
ADDING FEATURES TO YOUR GATSBY SITE - This Dot Labs
Here, we'd be going over the contents of the scaffolded gatsby project we got from the previous tutorial. gatsby-config.js. This file holds ...
Read more >
30 Setting up the gatsby-node.js file Part1 (Gatsby + WordPress)
How to setup the gatsby node file to read the slugs and create pages from each of the nodes that are being accessed....
Read more >
The argument 'path' must be a string or Uint8Array without null ...
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'path' must be a string or Uint8Array without null bytes.
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