You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when running gatsby develop, the following warnings show up despite it's been successfully built:
warn Error persisting state: function mathPlugin (opts) {
if (opts == null) opts = {}
blockPlugin.call(this, opts)
inlinePlugin.call(this, opts)
} could not be cloned.
Dear,
Like you guessed, until Gatsby 5.3 it didn't support ESM.
So, you need to use remark-math^3.0.1 and rehype-katex^5.0.0 with your Possible solutions style.
And like I mentioned in gatsbyjs/gatsby#21866 (comment) load katex css in gatsby-ssr.js file like below:
Description
gatsby develop
, the following warnings show up despite it's been successfully built:Possible solutions
Problem Remains
require
syntax isn't compatible with current ESM syntax.The text was updated successfully, but these errors were encountered: