Skip to content
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

Issues when using with SST #66

Open
jhochmuth opened this issue Mar 22, 2023 · 1 comment
Open

Issues when using with SST #66

jhochmuth opened this issue Mar 22, 2023 · 1 comment

Comments

@jhochmuth
Copy link
Contributor

Importing the client fails when using SST. Creating this for tracking purposes

@mixman
Copy link

mixman commented Jul 30, 2023

Ran into the same issue (v0.9.0). Works fine in local tests, but not via AWS Lambda.

import { Config } from 'sst/node/config';
import rockset from '@rockset/client';
const rocksetClient = rockset(Config.ROCKSET_API_KEY, 'https://api.euc1a1.rockset.com');

Error: (0 , import_client3.default) is not a function

Seems this is a known issue. Noticed the workaround in the docs:

Note: most sans-TypeScript projects currently require the following (we're currently working on better interoperability for Node / CommonJS / ES6):

const rocksetClient = rockset.default(...);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants