-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
ReferenceError: self is not defined - Issue with whatwg-fetch when using the core lib with Node.js #1
Comments
Here's another viable option, fetch-ponyfill. |
Hey @adnanrahic ! I think it makes sense to use isomorphic-fetch. Also continuous retry logic should be disabled as well. |
Also running into this while using Cube.js with Next.js. Pages have SSR enabled by default, and loading Cube.js becomes very tricky. |
@superzadeh Hey Charles! We just replaced |
Awesome! just upgraded and it works flawlessly, ❤ |
@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. |
* Initial work on ClickHouse driver * Update dependencies * added basic test including some fixes (#1) * Added tests and made some fixes * Generate custom query id * Add support for parameter placeholders * Enable join_use_nulls option * Add reference to ClickHouse driver * Add clickhouse option to the usage * Update documentation * Code formatting * Enable session per connection in the pool
…aracters (#289). Thanks to @philippefutureboy! * fix(SqliteDriver.js): Fixed table schema parsing #1 .match on line 52 returned null => fixed by removing the EOL character #2 The describe table returns the name of the field between square brackets => fixed by removing the square brackets * Added support for all escape symbols ((\[|`|")?) Fix now supports all escape symbols and absence of escape symbol. + Refactored the `tables.map.reduce` to `tables.reduce` instead.
* wip * refactoring around transformData * refactoring types etc. * types unifying and refactoring * refactoring types * refactoring end * edge cases solution #1, some refactoring * query type based values removed from compact response * linting warning fix * typo/linting fixes * typo/linting fixes * network protocol changes wip * transformData general refactoring * transformData general refactoring * transformData general refactoring * methods description added * helpers unit tests * helpers unit tests * helpers unit tests * helpers unit tests * transformData ready and covered * loadResponseInternal ready and covered * yarn.lock updated with the @babel/preset-env and its deps * compact transport added to the abstract test case * resType flag moved to the query object * added to the query Joi schema * abstract test case restored * birdbox result-type test added * birdbox result-type added to the birdbox workflow * birdbox result-type added to the birdbox workflow (cli) * replaced to responseFormat, property moved to queryand client-core#load method * fix CubejsApi#load definition * fix CubejsApi#load definition * birdbox respose type test typo fix and snapshots * responseFormat e2e tests merged to the postgresql e2e tests * cleaning up git workflow * obsolete snapshot file removed * BigQuery specific value processing removed from the transformValue * Update abstract-test-case.ts * fix test suit name
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.The text was updated successfully, but these errors were encountered: