docz: Can't run docz after a fresh install

Bug Report

Getting an error when running yarn run docz dev on a fresh install (from the getting started guidelines)

To Reproduce

  1. mkdir test_project
  2. yarn add docz
  3. yarn run docz dev
  4. See error
 WARNING  Compiled with 11 warnings                                                                                                                                                                 07:18:24

 warning  in ./node_modules/buble/dist/buble-browser.es.js

"export 'default' (imported as 'require$$0') was not found in 'acorn'

 warning  in ./node_modules/buble/dist/buble-browser.es.js

"export 'default' (imported as 'require$$0') was not found in 'acorn'

 warning  in ./node_modules/buble/dist/buble-browser.es.js

"export 'default' (imported as 'require$$0') was not found in 'acorn'

 warning  in ./node_modules/buble/dist/buble-browser.es.js

"export 'default' (imported as 'require$$0') was not found in 'acorn'

 warning  in ./node_modules/buble/dist/buble-browser.es.js

"export 'default' (imported as 'require$$0') was not found in 'acorn'

 warning  in ./node_modules/buble/dist/buble-browser.es.js

"export 'default' (imported as 'require$$0') was not found in 'acorn'

 warning  in ./node_modules/buble/dist/buble-browser.es.js

"export 'default' (imported as 'require$$0') was not found in 'acorn'

 warning  in ./node_modules/buble/dist/buble-browser.es.js

"export 'default' (imported as 'require$$0') was not found in 'acorn'

 warning  in ./node_modules/buble/dist/buble-browser.es.js

"export 'default' (imported as 'require$$0') was not found in 'acorn'

 warning  in ./node_modules/buble/dist/buble-browser.es.js

"export 'default' (imported as 'require$$0') was not found in 'acorn'

 warning  in ./node_modules/buble/dist/buble-browser.es.js

"export 'default' (imported as 'require$$0') was not found in 'acorn'

Environment

  • OS: [OSX Mojave 10.14]
  • Node/npm version: [ Node 8.11.2 /npm 6.4.1 / yarn 1.9.4]

Additional context/Screenshots

Tried on two different computers no luck. A previous project that I had running and configured started failing with the same error after I added a dependency. (I assume a dependency of docz changed and is causing this error?)

Thanks!!

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 23
  • Comments: 20 (8 by maintainers)

Most upvoted comments

Hi guys, sorry the too late response, last weeks was very hard to me and I couldn’t see anything about docz, but now I available again… I’ll check and try to fix this 🙏

Downgrading the local version of buble (which is a dependency of docz) fixed the issue.

yarn add buble@0.19.4

More details here: https://github.com/Rich-Harris/buble/issues/159

@kucukkanat Things happen! Also you spelled “breaks” incorrectly. Maybe you just broke my entire trust in dictionaries.

This just brakes my whole trust on open source. Wanted to drop it here.

you can always fix it yourself and keep trusting it.

@pedronauck this can be closed. buble fixed their bug so this is no longer an issue again.

@rafaelchiti It just builds success. when you open in the browser, The console shows error:

Uncaught TypeError: Cannot set property 'jsx' of undefined
    at inject (webpack-internal:///./node_modules/buble/dist/buble-browser.es.js:639)
    at eval (webpack-internal:///./node_modules/buble/dist/buble-browser.es.js:9823)
    at Array.reduce (<anonymous>)
    at Module.eval (webpack-internal:///./node_modules/buble/dist/buble-browser.es.js:9822)
    at eval (webpack-internal:///./node_modules/buble/dist/buble-browser.es.js:9918)
    at Module../node_modules/buble/dist/buble-browser.es.js (vendors.js:1286)
    at __webpack_require__ (runtime~app.js:788)
    at fn (runtime~app.js:151)
    at eval (webpack-internal:///./node_modules/react-live/dist/react-live.es.js:26)
    at Module../node_modules/react-live/dist/react-live.es.js (vendors.js:5579)

Adding "buble": "^0.19.6 to your package.json should do the trick.