cityofaustin / grackl

A bird's eye view of Digital Projects at the City of Austin
https://grackle.austintexas.io/
MIT License
11 stars 3 forks source link

Fix build by including local dependencies #73

Closed benweatherman closed 6 years ago

benweatherman commented 6 years ago

Normally gatsby plugins are listed as dependencies in package.json so npm handles installing their subdependencies. Since we're using a local plugin we need to make sure those subdependencies are installed. Otherwise we run into build problems when our plugin loads and can't find it's dependencies. In our case we get

Error: Cannot find module 'airtable'

I think the easiest way to handle this is listing the local plugin as a dependency. That way npm will handle everything for us.