Hi, I'm checking out SpiceDB and trying to run so...
# spicedb
c
Hi, I'm checking out SpiceDB and trying to run some experiments locally. I've installed it and started it with
spicedb serve --grpc-preshared-key "t_your_token_here_1234567deadbeef"
which seems to work fine. Then I'm trying to use the NodeJS SDK following what is in the Github readme using this code:
Copy code
ts
import { v1 } from '@authzed/authzed-node';
const client = v1.NewClient('t_your_token_here_1234567deadbeef', 'localhost:50051', v1.ClientSecurity.INSECURE_LOCALHOST_ALLOWED)
But I'm just getting this error:
Copy code
TypeError: Cannot read properties of undefined (reading 'compose')
    at KnownInsecureChannelCredentialsImpl.compose (/Users/christian/.yarn/berry/cache/@authzed-authzed-node-npm-1.2.2-6d71d0caa1-10c0.zip/node_modules/@authzed/authzed-node/src/util.ts:53:28)
(I've removed the full stack trace because of character max length on Discord) Anyone who can point me in the correct direction of what I'm doing wrong?
5 Views