Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installed this plugin; errors immediately when running the site #25

Open
robjac opened this issue Sep 9, 2019 · 7 comments
Open

installed this plugin; errors immediately when running the site #25

robjac opened this issue Sep 9, 2019 · 7 comments

Comments

@robjac
Copy link

robjac commented Sep 9, 2019

ERROR

UNHANDLED REJECTION Unable to find plugin "gatsby-plugin-mdx". Perhaps you need to install its package?



  Error: Unable to find plugin "gatsby-plugin-mdx". Perhaps you need to install its package?

  - load.js:109 resolvePlugin
    [.docz]/[gatsby]/dist/bootstrap/load-plugins/load.js:109:11

  - load.js:153 processPlugin
    [.docz]/[gatsby]/dist/bootstrap/load-plugins/load.js:153:20

  - load.js:172
    [.docz]/[gatsby]/dist/bootstrap/load-plugins/load.js:172:20

  - Array.forEach

  - load.js:171 module.exports
    [.docz]/[gatsby]/dist/bootstrap/load-plugins/load.js:171:20

  - index.js:58 module.exports
    [.docz]/[gatsby]/dist/bootstrap/load-plugins/index.js:58:19

  - index.js:136 module.exports
    [.docz]/[gatsby]/dist/bootstrap/index.js:136:34

  - develop.js:380 async module.exports
    [.docz]/[gatsby]/dist/commands/develop.js:380:7

Do i need to install this as well? your instructions and examples do not detail this process.

@robjac
Copy link
Author

robjac commented Sep 9, 2019

Also, my site is already successfully reading and using .mdx

So this error is rather confusing.

@robjac
Copy link
Author

robjac commented Sep 9, 2019

I then ran
yarn add gatsby-plugin-mdx

and started my docz site,

then:

 ERROR

UNHANDLED REJECTION Cannot read property 'forEach' of undefined



  TypeError: Cannot read property 'forEach' of undefined

  - index.js:59 AsyncFunction.createMdxAstCompiler
    [.docz]/[@mdx-js]/mdx/index.js:59:13

  - gen-mdx.js:87 genMDX
    [.docz]/[gatsby-plugin-mdx]/utils/gen-mdx.js:87:24

  - task_queues.js:55 runNextTicks
    internal/process/task_queues.js:55:5

  - timers.js:412 processImmediate
    internal/timers.js:412:9

  - mdx-loader.js:159 Object.module.exports
    [.docz]/[gatsby-plugin-mdx]/loaders/mdx-loader.js:159:28

@zy941002
Copy link

I got the same error~

@enric-jorda
Copy link

enric-jorda commented Oct 31, 2019

The same for me, any solution?

@trybick
Copy link

trybick commented Jan 20, 2020

I am also seeing error TypeError: Cannot read property 'forEach' of undefined once adding the docz-plugin-css. Any info appreciated

@trybick
Copy link

trybick commented Jan 26, 2020

In my case, I found out this plugin is only for docz v1. With docz v2 there is a new way to do css preprocessors:

https://www.docz.site/docs/usage-with-css-preprocessors

@robjac
Copy link
Author

robjac commented Jan 30, 2020

@trybick thanks for sharing. Is this new documentation? I've had to put my project on hold because of a number of issues without any documentation ( but this could help! )

thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants