DanielOliver / gatsby-source-azure-storage

Source plugin for pulling data into Gatsby from Azure Storage.
https://www.npmjs.com/package/gatsby-source-azure-storage
MIT License
6 stars 4 forks source link

Error when using together 'gatsby-source-filesystem' #4

Open jpalo opened 3 years ago

jpalo commented 3 years ago

How would I use this plugin with 'gatsby-source-filesystem' as both want to use node type File?

Error I get if I include both plugins is:

The plugin "gatsby-source-filesystem" created a node of a type owned by another plugin.
The node type "File" is owned by "gatsby-source-azure-storage"

So basically plugins would look something like:

{
      resolve: `gatsby-source-azure-storage`,
      options: {
        tables: [],
        containers: [
          {
            name: `json`,
            // If defined, downloads the blobs in this container to this folder.
            localFolder: `source-json`
          }
        ],
        // If defined, downloads the blobs in all containers above (unless overriden on the container) to this folder.
        // containerLocalFolder: 'test'
      }
    },
    {
      resolve: `gatsby-source-filesystem`,
      options: {
        name: `images`,
        path: `${__dirname}/src/images`,
      },
    },

I can work around it by placing also images to the Azure Storage Account and not using gatsby-source-filesystem at all. That might be the way to do it and I'm just trying to use Gatsby wrong...

vargajacint commented 3 years ago

Any update?