Skip to content

asyncRequires.components is undefined #3196

@vincentvandyck

Description

@vincentvandyck

Description

Currently when I run gatsby develop I get an error TypeError: asyncRequires.components is undefined.
The error comes from .cache/loader.js:71

  68 | // Find resource
  69 | let resourceFunction
  70 | if (resourceName.slice(0, 12) === `component---`) {
> 71 |   resourceFunction = asyncRequires.components[resourceName]
  72 | } else if (resourceName.slice(0, 9) === `layout---`) {
  73 |   resourceFunction = asyncRequires.layouts[resourceName]
  74 | } else {

I've tried removing the cache, but the issue just comes back.

Running gatsby build works as far as I'm aware, gatsby serve appears to work, but gives no cli feedback as to where it's serving.

I'm also quite unsure as to what cause the issue, since I just wanted to run gatsby develop in a directory where it worked fine yesterday. I've already done a git reset to make sure that it wasn't caused by something I accidentally did.

Environment

Gatsby version: 1.1.27
Node.js version: 6.11.2
Operating System: Windows 10

File contents (if changed):

I use gatsby-source-contentful. But nothing changed since the commands last worked

Thanks for taking a look at this,
Vincent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions