Incompatibility issue of cassandra-driver@4.5.2 with Nodejs12.18.1

Description

Runs into "Uncaught TypeError: The "original" argument must be of type Function"

Environment

1. start new React app with `npx create-app app`
2. run `npm install cassandra-driver` and add code

Pull Requests

None

Activity

Show:
Alexandre Dutra
June 18, 2020, 7:26 AM

Hi I moved your ticket to the NodeJS driver Jira.

Jorge Bay Gondra
June 18, 2020, 8:52 AM

Hi,

The database driver is a server side component, it doesn’t work on the browser.

By creating a new react app like shown here, it will download all the tools to bundle javascript code into static files and run them in the browser. That is not supported by the Cassandra driver.

If you want to add server side code to your react app, you should look into Server Side Rendering (SSR) or creating a web service that serves that information and fetch it from react client side app.

Jorge Bay Gondra
June 18, 2020, 11:36 AM

Let me know if I can close the ticket or if you have further questions.

Leon Liang
June 18, 2020, 3:43 PM

@JorgeBayGondra Thanks so much, I’ll look into SSR!

Jorge Bay Gondra
June 19, 2020, 8:05 AM

Ok, I'll close the ticket.

If you have any further question, don't hesitate to reach out. You can also ask questions / doubts on the mailing list: https://groups.google.com/a/lists.datastax.com/forum/#!forum/nodejs-driver-user

Assignee

Unassigned

Reporter

Leon Liang

Reviewer

None

Fix versions

None

Labels

None

Components

None

PM Priority

None

Reproduced in

None

Pull Request

None

Priority

Major
Configure