Skip to content

Fail to build documentation with babel@7 #1108

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

Closed
SilentImp opened this issue Jul 22, 2018 · 2 comments
Closed

Fail to build documentation with babel@7 #1108

SilentImp opened this issue Jul 22, 2018 · 2 comments

Comments

@SilentImp
Copy link

SilentImp commented Jul 22, 2018

Hi, I can't build documentation after update babel to 7 version.

documentation readme source/*.js --section="Documentation"

/Users/silentimp/Work/mercury-sdk/node_modules/babelify/index.js:65
if (!babel.util.canCompile(filename, extensions)) {
^

TypeError: Cannot read property 'canCompile' of undefined
at /Users/silentimp/Work/mercury-sdk/node_modules/babelify/index.js:65:21
at makeTransform (/Users/silentimp/Work/mercury-sdk/node_modules/module-deps-sortable/index.js:271:21)
at /Users/silentimp/Work/mercury-sdk/node_modules/module-deps-sortable/index.js:246:9
at Deps.getTransforms (/Users/silentimp/Work/mercury-sdk/node_modules/module-deps-sortable/index.js:251:7)
at /Users/silentimp/Work/mercury-sdk/node_modules/module-deps-sortable/index.js:391:24
at onresolve (/Users/silentimp/Work/mercury-sdk/node_modules/module-deps-sortable/index.js:203:14)
at /Users/silentimp/Work/mercury-sdk/node_modules/browser-resolve/index.js:269:13
at onfile (/Users/silentimp/Work/mercury-sdk/node_modules/browser-resolve/node_modules/resolve/lib/async.js:51:21)
at onex (/Users/silentimp/Work/mercury-sdk/node_modules/browser-resolve/node_modules/resolve/lib/async.js:93:22)
at /Users/silentimp/Work/mercury-sdk/node_modules/browser-resolve/node_modules/resolve/lib/async.js:24:18
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @frontender-magazine/[email protected] build:readme: documentation readme source/*.js --section="Documentation"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @frontender-magazine/[email protected] build:readme script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

  • What version of documentation.js are you using?:

[email protected]

@SilentImp
Copy link
Author

look like you already got this one #1036

@tmcw
Copy link
Member

tmcw commented Jul 23, 2018

Yep, covered by #1036 - documentation.js can/will update to Babel 7 when Babel 7 is the latest stable release.

@tmcw tmcw closed this as completed Jul 23, 2018
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

2 participants