Skip to content

[gatsby-transformer-json] multiple json files giving unexpected behaviour #34669

Answered by LekoArts
marceloverdijk asked this question in Help
Discussion options

You must be logged in to vote

Hi!

You're overwriting the automatic typeName generation by using this: https://www.gatsbyjs.com/plugins/gatsby-transformer-json/#configuration-options

If you're using this it should work:

module.exports = {
  plugins: [
    `gatsby-transformer-json`
    {
      resolve: `gatsby-source-filesystem`,
      options: {
        path: `./src/data/`,
      },
    },
  ]
};

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@marceloverdijk
Comment options

@LekoArts
Comment options

Answer selected by marceloverdijk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #34635 on February 01, 2022 09:19.