mpartipilo / gatsby-source-cockpit

Gatsby plugin to access remote content from a Cockpit API (http://getcockpit.com/)
MIT License
13 stars 3 forks source link

reporter.list is not a function #10

Open skoch opened 4 years ago

skoch commented 4 years ago

When starting the app via gatsby develop, I find the following error. I do have a few collections in the cockpit CMS.

Any guidance?

info Cockpit host: http://localhost:8080
info Cockpit access token: 97265208300e57ea3c008f03922039
info Fetching list of assets
info Assets retrieved: Found 5 assets
info Specified Collections:

 ERROR #11321  PLUGIN

"gatsby-source-cockpit" threw an error while running the sourceNodes lifecycle:

reporter.list is not a function

  45 |
  46 |   reporter.info(`Specified Collections:`);
> 47 |   reporter.list(`collection names`, collectionName);
     |            ^
  48 |
  49 |   const tick = reporter.progress(collectionName.length);
  50 |

File: node_modules/gatsby-source-cockpit/gatsby-node.js:47:12

  TypeError: reporter.list is not a function
mpartipilo commented 4 years ago

This is because the reporter was previously provided by Gatsby.

I have not updated this plugin in a while. I do have a fork of another plugin that I have been re-writing that you may want to try. I can upload it in a couple hours if that's ok for you.