doczjs / docz

✍ It has never been so easy to document your things!
https://docz.site
MIT License
23.6k stars 1.46k forks source link

ERROR #11331 PLUGIN #1629

Open 1degrees opened 3 years ago

1degrees commented 3 years ago

Bug Report

Describe the bug

ERROR #11331 PLUGIN

Invalid plugin options for "gatsby-plugin-mdx", configured by ../node_modules/gatsby-theme-docz:

yarn create docz-app my-docz-app --example typescript
// docz.js
import images from 'remark-images'
import emoji from 'remark-emoji'

export default {
  typescript: true,
  themeConfig: 'gatsby-theme-docz',
  mdPlugins: [images, emoji],
}
  1. Run npm run docz dev
  2. See error in browser
$ docz dev

Building app
success open and validate gatsby-configs - 0.651s

 ERROR #11331  PLUGIN

Invalid plugin options for "gatsby-plugin-mdx", configured by ../node_modules/gatsby-theme-docz:

- "remarkPlugins[0]" does not match any of the allowed types

not finished load plugins - 0.232s

Expected behavior

A clear and concise description of what you expected to happen..

Environment

Additional context/Screenshots image

triwats commented 3 years ago

Running into this too - relates to #1633 and #1632

1degrees commented 3 years ago

Running into this too - relates to #1633 and #1632

The cause of this error is that no gatsby-plugin-mdx@1.0.67 is installed After the fix, the muyaRehypePlugin (Custom a small plug-in) will not be called at all

image

repo: https://gitee.com/zxtc88/comuse-ui

pedronauck commented 3 years ago

Hi guys, I'm updating all dependencies in order to launch v2.4 with an updated and stabled version of Docz. I think next week I'll get with this, after that we can maybe go back here and see if will happen this yet.