Skip to content

Vite throws error starting with @elevenlabs/client 1.x #638

@Nickersoft

Description

@Nickersoft

Hey folks,

Didn't see this mentioned before and couldn't find an obvious breaking change for this in the package history, so wanted to share. Starting with the 1.x line of the client package, running my Vite dev server seems to error out over the imports of the package's barrel file. Does anyone know what changed to cause this error? Is there a fix required on my end?

Error when evaluating SSR module /src/routes/(app)/(authenticated)/(app)/chat/+page.svelte: Cannot find module '/Users/tjnickerson/Documents/GitHub/Nickersoft/hello-app/node_modules/@elevenlabs/client/dist/BaseConversation' imported from /Users/tjnickerson/Documents/GitHub/Nickersoft/hello-app/node_modules/@elevenlabs/client/dist/index.js
      at finalizeResolution (node:internal/modules/esm/resolve:275:11)
      at moduleResolve (node:internal/modules/esm/resolve:865:10)
      at defaultResolve (node:internal/modules/esm/resolve:991:11)
      at nextResolve (node:internal/modules/esm/hooks:785:28)
      at o (file:///Users/tjnickerson/Documents/GitHub/Nickersoft/hello-app/node_modules/@tailwindcss/node/dist/esm-cache.loader.mjs:1:69)
      at nextResolve (node:internal/modules/esm/hooks:785:28)
      at AsyncLoaderHooksOnLoaderHookWorker.resolve (node:internal/modules/esm/hooks:269:30)
      at MessagePort.handleMessage (node:internal/modules/esm/worker:251:24)
      at [nodejs.internal.kHybridDispatch] (node:internal/event_target:843:20)
      at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions