-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
dev and build scripts fail — TypeError: programPath.hub.addHelper is not a function #252
Comments
Upon googling this error I found a suggestion to upgrade all babel dependencies to |
I have same error with |
rc.4 + yarn (opposed to npm) produce the same error. |
My docz still broken after reinstall all dependencies |
i just upgraded all babel deps to 7, still see to same error while deploying next.js 6.1.1 on heroku or now |
I think this has already been fixed in the dev branch with an upgrade to Babel 7, so I'm guessing with the next release it should be out. It worked for me by manually upgrade docz-core from babel 7.0.0-beta.55 to the latest (7.0.0). |
My project requires babel 6... so I was nesting the documentation within a sub dir with it's own package.json so I could use babel 7 with docz. I then pulled components from the master project. I don't understand why that didn't work, but moving the documentation to the master project dir and using the babel 6 plugin worked. Although for this to work I am forced to use docz version 0.9.6... so it'd still be nice to have the setup I was using, but this works for now. |
Bug Report
Describe the bug
Using Babel 7, Webpack 4... Running dev or build scripts fail
A clear and concise description of what the bug is.
To Reproduce
package.json depedencies
.babelrc config
index.mdx file
Logo being imported by index.mdx
Then run
docz dev
ordocz build
and it'll fail with the error aboveExpected behavior
The build won't fail, and i'll be able to see Docz working with the Logo on page.
Environment
The text was updated successfully, but these errors were encountered: