node js-sdk library?

Hey there. I have used xano before in other projects, but a new import is totally failing.

After importing the js-sdk module, trying to instantiate gives:

"TypeError: _jsSdk.XanoNodeClient is not a constructor"

The same is true for XanoClient.

I ran:

npm install @xano/js-sdk

Code is basic

import { XanoNodeClient } from '@xano/js-sdk';

    const url = 'https://my_xano_url';

    const xanoClient = new XanoNodeClient({

            apiGroupBaseUrl : url,

        }); 

    }   

Any suggestions?

1 reply