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