MichaelDeBoey/gatsby-remark-embedder

Instragram fails to transform

Closed this issue · 8 comments

  • gatsby-remark-embedder version: ^1.9.0
  • gatsby-plugin-instagram-embed version: ^1.1.0
  • node version: v13.6.0
  • npm version: 6.13.4

Relevant code or config
gatsby-config.js

[
    `gatsby-plugin-instagram-embed`,
    {
      resolve: 'gatsby-transformer-remark',
      options: {
        plugins: [
          `gatsby-remark-embedder`
        ]
      }
    }
]

markdown

I have done a funny work with this:

https://instagram.com/p/B60jPE6J8U-

What you did: Add instragram url to markdown file.

What happened:

 ERROR #85901  GRAPHQL

There was an error in your GraphQL query:

Cannot read property 'Symbol(Body internals)' of undefined

   1 | query CodeTipsPostByID($id: String!) {
   2 |   markdownRemark(id: {eq: $id}) {
   3 |     id
>  4 |     html
     |     ^
   5 |     frontmatter {
   6 |       date(formatString: "MMMM DD, YYYY")
   7 |       title
   8 |       description
   9 |       author
  10 |       tags
  11 |     }
  12 |   }
  13 | }
  14 |

Hi @arryanggaputra!

Could you provide a reproduction repo or CadeSandbox please, so I can take a look?

Thanks!

@arryanggaputra Can you update all your dependencies to the latest version please?
I know there was a problem in gatsby, which should be resolved.

@MichaelDeBoey every dependency already upgrade to the latest version.

my-gatsby git:(development) ✗ yarn outdated
yarn outdated v1.21.1
✨  Done in 1.90s.

Any other thing that I need to check?

@arryanggaputra Just checked out your repo and ran yarn build and I see it too.

Do you have the time to make a minimal representation please?
Just add gatsby-transformer-remark and gatsby-remark-embedder and you'll be good.
That way we can be sure it's not because of other things you're doing. 🙂

AST Explorer seems to understand the links correct, so I can't think of any reason the plugin would break atm.

🎉 This issue has been resolved in version 1.9.1 🎉

The release is available on:

Your semantic-release bot 📦🚀