Comments (7)
Here is a snippet from my main.ts
import * as functions from "firebase-functions";
import {AccessToken} from "livekit-server-sdk";
const API_KEY = "---------------";
const SECRET_KEY = "------------------------";
export const createRoom = functions.https.onCall(async (data) => {
const roomName = data.room;
const participantName = data.user;
const at = new AccessToken(API_KEY, SECRET_KEY, {
identity: participantName,
});
at.addGrant({
roomCreate: true,
roomJoin: true,
room: roomName,
canPublish: true,
canSubscribe: true,
});
const token = at.toJwt();
console.log("access token", token);
return token;
});
from node-sdks.
Another user reported this, and they had a workaround:
I tried excluding node_modules from our tsconfig, but that didn't seem to help. Only when I added skipLibCheck: true did the build work.
This was with LiveKit Server SDK v0.5.6 and TS v4.1.3
from node-sdks.
That makes total sense, and seems like the right thing to do in any case
from node-sdks.
reopening as others are also running into this. keeping it around to see if there's a better fix.
from node-sdks.
Another user reported seeing this with Node 14.
from node-sdks.
I'm seeing this in Node 20 without setting skipLibCheck
to true.
from node-sdks.
@davidzhao Seems like this bug was reintroduced with a709384
from node-sdks.
Related Issues (20)
- EgressClient failed to export stream. HOT 1
- Text Chat via WebRTC Data Channel is unusable HOT 3
- Join room using the sdk from server HOT 1
- AccessToken.addGrant() should not replace previous grants HOT 1
- Cloudflare Worker support - avoid using 'crypto' from Node HOT 1
- updateParticipant throws uncatchable 500 error
- Documentation Update: `emptyTimeout` in `CreateOptions`
- key "name" missing in WebhookEvent type HOT 1
- After upgrading to v2, all functions like `createIngress()` are broken
- Import error in nestjs typescript HOT 7
- sendData is not working HOT 1
- Migration Doc: In `listRooms` response, field `creationTime` has been changed from Int to BigInt HOT 1
- Dependency Dashboard
- Livekit importing err when working with nestjs. HOT 1
- Dependency issue livekit-server-sdk HOT 1
- Issue with Parallel Room Instances and Audio Publishing HOT 2
- IO error: invalid peer certificate: UnknownIssuer HOT 2
- Inquiry about compatibility of Live Kit SDK with Deno HOT 4
- Expose WebhookEvent type HOT 1
- Cannot find module 'long' HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-sdks.