c8r / x0

Document & develop React components without breaking a sweat
https://compositor.io/x0/
MIT License
1.71k stars 65 forks source link

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

Open vanpelt opened 5 years ago

vanpelt commented 5 years ago

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)
tdeebswihart commented 5 years ago

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

bouiboui commented 5 years ago

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

andifoerster commented 5 years ago

+1