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

Dependency issue livekit-server-sdk #214

Closed
vlxdisluv opened this issue Jun 19, 2024 · 1 comment
Closed

Dependency issue livekit-server-sdk #214

vlxdisluv opened this issue Jun 19, 2024 · 1 comment

Comments

@vlxdisluv
Copy link

Have this error in Nest.js server:

api  | const livekit_server_sdk_1 = require("livekit-server-sdk");
api  |                              ^
api  | Error [ERR_REQUIRE_ESM]: require() of ES Module /usr/src/app/node_modules/livekit-server-sdk/dist/index.js from /usr/src/app/dist/src/infrastructure/third-party-services/livekit/livekit.service.js not supported.
api  | Instead change the require of index.js in /usr/src/app/dist/src/infrastructure/third-party-services/livekit/livekit.service.js to a dynamic import() which is available in all CommonJS modules.
api  |     at Object.<anonymous> (/usr/src/app/dist/src/infrastructure/third-party-services/livekit/livekit.service.js:17:30)

Version:
"livekit-server-sdk": "^2.4.0",
"@nestjs/core": "^10.0.0",

@vlxdisluv vlxdisluv changed the title Dependency issue upgrading Dependency issue livekit-server-sdk Jun 19, 2024
@lukasIO
Copy link
Contributor

lukasIO commented Jun 19, 2024

Hi,
have a look at this issue thread for possible workarounds

@lukasIO lukasIO closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2024
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