You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ReferenceError: self is not defined - Issue with whatwg-fetch when using the core lib with Node.js #1
The core library is not compatible with Node.js because of the whatwg-fetch module. I'd suggest moving to an isomorphic alternative that works with both browsers and server.
@superzadeh Hey Charles! Thanks for feedback! It's very interesting how you're using Next.js together with cube.js. Would love if you have a chance to write some tutorial blog post about that. Please reach me out in our Slack if you have some spare time.
Activity
adnanrahic commentedon Dec 3, 2018
Here's another viable option, fetch-ponyfill.
paveltiunov commentedon Dec 5, 2018
Hey @adnanrahic ! I think it makes sense to use isomorphic-fetch. Also continuous retry logic should be disabled as well.
superzadeh commentedon Apr 16, 2019
Also running into this while using Cube.js with Next.js. Pages have SSR enabled by default, and loading Cube.js becomes very tricky.
paveltiunov commentedon Apr 16, 2019
@superzadeh Hey Charles! We just replaced
whatwg-fetchwithisomorphic-fetchin 0.7.3. Could you please try?superzadeh commentedon Apr 18, 2019
Awesome! just upgraded and it works flawlessly, ❤
Thank you so much, so far I'm really loving the project 👍
paveltiunov commentedon Apr 19, 2019
@superzadeh Hey Charles! Thanks for feedback! It's very interesting how you're using Next.js together with cube.js. Would love if you have a chance to write some tutorial blog post about that. Please reach me out in our Slack if you have some spare time.
feat: Driver for ClickHouse database support (#94)
fix(sqlite-driver): Fixed table schema parsing: support for escape ch…
edge cases solution #1, some refactoring
feat: Compact JSON array based response data format support (#4046)
feat(cubestore/raft): M2.1 — single-node Raft propose/apply working
fix: Allow SSR: use isomorphic-fetch instead of whatwg-fetch.
feat: Driver for ClickHouse database support (cube-js#94)
fix(sqlite-driver): Fixed table schema parsing: support for escape ch…
feat: Compact JSON array based response data format support (cube-js#…
fix(cube-cli): report ref verification in the document, and keep the …
fix: report refVerified on the bare --json start, and make the gate a…
fix(cube-cli): report ref verification in the document, and keep the …
fix: report refVerified on the bare --json start, and make the gate a…
fix(cube-cli): report ref verification in the document, and keep the …
fix: report refVerified on the bare --json start, and make the gate a…
fix(cube-cli): report ref verification in the document, and keep the …
fix: report refVerified on the bare --json start, and make the gate a…