Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asyncRequires.components is undefined #3196

Closed
vincentvandyck opened this issue Dec 13, 2017 · 1 comment
Closed

asyncRequires.components is undefined #3196

vincentvandyck opened this issue Dec 13, 2017 · 1 comment

Comments

@vincentvandyck
Copy link

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

@vincentvandyck
Copy link
Author

After restarting machine, the issue seems to have gone away.
Still unsure as to what might have caused this or how I can recreate (and thus prevent) it in the future.

Sorry for raising a false alarm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant