mindsdb / mindsdb_js_sdk

DEPRICATED
http://mindsdb.com
MIT License
12 stars 3 forks source link

Babel dependencies not installing #35

Closed bpeters closed 3 years ago

bpeters commented 3 years ago

Your Environment

Please describe your issue and how we can replicate it

Cannot find module '@babel/runtime/helpers/classCallCheck' when importing sdk.

I had to install @babel/runtime myself locally

abdellani commented 1 year ago

Hi I think that the problem is not solved. I also need to install @babel/runtime before I could run the following example:

const  MindsDB= require('mindsdb-js-sdk');

const main = async()=>{
  MindsDB.connect("http://127.0.0.1:47334/api", [{key:"apikey",value:"placeholder"}]);
  const connected = await MindsDB.ping();
  if (!connected) return;
  console.log("connected !!!")
}

main();