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

Buble version breaks rendering #1

Closed
HarisSpahija opened this issue Apr 11, 2019 · 0 comments
Closed

Buble version breaks rendering #1

HarisSpahija opened this issue Apr 11, 2019 · 0 comments

Comments

@HarisSpahija
Copy link

Issue
When doing a fresh install, docz is not being able to render.

Reproduce issue:
Using node -v //v11.13.0
Using npm -v //6.7.0

Download the repo with npx
npx gatsby-cli new docz-test https://github.com/RobinCsl/gatsby-starter-docz

Initiate gatsby
gatsby develop

Start docz
npm run docz:dev

Expected result
Gatsby and docz open their default pages as shown in the repo

Actual result
Docz crashes and returns in log:

Uncaught TypeError: acorn_jsx__WEBPACK_IMPORTED_MODULE_3___default(...) is not a function
    at eval (buble-browser.es.js?a7b4:4774)
    at Module../node_modules/buble/dist/buble-browser.es.js (vendors.js:680)
    at __webpack_require__ (runtime~app.js:801)
    at fn (runtime~app.js:164)
    at eval (react-live.es.js?849f:1)
    at Module../node_modules/react-live/dist/react-live.es.js (vendors.js:7513)
    at __webpack_require__ (runtime~app.js:801)
    at fn (runtime~app.js:164)
    at eval (index.m.js?1110:1)
    at Module../node_modules/docz-theme-default/dist/index.m.js (vendors.js:5779)
    at __webpack_require__ (runtime~app.js:801)
    at fn (runtime~app.js:164)
    at Module.eval (root.jsx:6)
    at eval (root.jsx:57)
    at Module../.docz/app/root.jsx (app.js:34)
    at __webpack_require__ (runtime~app.js:801)
    at fn (runtime~app.js:164)
    at Module.eval (index.jsx:6)
    at eval (index.jsx:69)
    at Module../.docz/app/index.jsx (app.js:22)
    at __webpack_require__ (runtime~app.js:801)
    at fn (runtime~app.js:164)
    at Object.0 (app.js:59)
    at __webpack_require__ (runtime~app.js:801)
    at checkDeferredModules (runtime~app.js:60)
    at Array.webpackJsonpCallback [as push] (runtime~app.js:47)
    at app.js:1

Solution:
Downgrade buble-browser to "buble": "^0.19.4", (See doczjs/docz#416 (comment))

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

1 participant