Gatsby: Errors while working with gatsby-source-filesystem

Created on 22 Apr 2018  路  5Comments  路  Source: gatsbyjs/gatsby

I'm currently working on a gatsby-source-plugin, that requires createRemoteFileNode for handling images and media files.

I've added gatsby-source-filesystem for createRemoteFileNode function:

const { createRemoteFileNode } = require(`gatsby-source-filesystem`);

And when run the plugin in a tester project, even though I'm not even using the function yet, it throws the following error:

error UNHANDLED EXCEPTION


  Error: Cannot find module 'better-queue'

  - module.js:11 require
    internal/module.js:11:18

Any help or suggestions in fixing this issue would be appreciated.

good first issue help wanted maintenance

All 5 comments

This looks like a missing dependency in the package. Adding better-queue to gatsby-source-filesystem's package.json should fix it.

I was thinking of doing the same, but doubted if it was a local error on my system rather than an issue in package. If we can confirm the issue is with the package, I'll make the PR and try. @m-allanson

@m-allanson This issue has been resolved with the PR, closing it.

Thanks @ajayns 馃檹

Happy to help :smiley: @m-allanson

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mikestopcontinues picture mikestopcontinues  路  3Comments

ferMartz picture ferMartz  路  3Comments

kalinchernev picture kalinchernev  路  3Comments

Oppenheimer1 picture Oppenheimer1  路  3Comments

signalwerk picture signalwerk  路  3Comments