c8r / x0

Document & develop React components without breaking a sweat

Home Page:https://compositor.io/x0/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New install fails with: "Uncaught TypeError: Cannot set property 'jsx' of undefined"

vanpelt opened this issue · comments

I installed from within a docker container, so this is most likely busted for all new installs.

I did some digging, seems like docz had a similar issue and it was fixed for most by upgrading buble. I'll do more digging tomorrow.

Uncaught TypeError: Cannot set property 'jsx' of undefined
    at inject (buble-browser.es.js:639)
    at eval (buble-browser.es.js:9823)
    at Array.reduce (<anonymous>)
    at Module.eval (buble-browser.es.js:9822)
    at eval (buble-browser.es.js:9918)
    at Module../usr/local/lib/node_modules/@compositor/x0/node_modules/buble/dist/buble-browser.es.js (dev.js:1267)
    at __webpack_require__ (dev.js:724)
    at fn (dev.js:101)
    at eval (react-live.es.js:26)
    at Module../usr/local/lib/node_modules/@compositor/x0/node_modules/react-live/dist/react-live.es.js (dev.js:3663)

I confirmed this: changing the required buble version to 0.19.7 causes x0 to work.

Same issue when run with npx (npx @compositor/x0 docs --open)