borgfriend/gatsby-remark-embed-video

Error Persisting State

Closed this issue · 5 comments

So I'm getting this error while developing and building Gatsby.

warning Error persisting state: function plugin({ 
  beginMarker,
  endMarker,
  pattyName = 'patty',
  onlyRunWithMarker = false, 
  insertBef...<omitted>...
} could not be cloned.

This comes from the remark-burger dependency. Is there a way to remove this warning?

Just wanted to drop in that we also observe this issue!

Alright cool. Can I help out with anything?

I think the problem is related to the gatsby mdx transformer!

I removed the error message by adding the following to gatsby-plugin-mdx setting:
remarkPlugins: [ require('remark-burger') ],

@JasonWang258 This worked.