-
Notifications
You must be signed in to change notification settings - Fork 27.6k
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
When trying to load kokoro-js with nextjs #75604
Comments
We cannot recreate the issue with the provided information. Please add a reproduction in order for us to be able to investigate. Why was this issue marked with the
|
@samcx, I've removed unecessary dependencies. Here is a live working example which was build from Vite: More info regarding steps to reproduce.
The output: https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./pages/worker.js
./pages/index.tsx
AMP bind syntax [0-9]='' is not supported in JSX, use 'data-amp-bind-0-9' instead. https://nextjs.org/docs/messages/amp-bind-jsx-alt
Warning: data for page "/_error" (path "/") is 6.45 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
GET / 500 in 4555ms Logs in browser console: GET http://localhost:3000/ 500 (Internal Server Error)
Navigated to http://localhost:3000/ Please suggest anything that I might have been missing. I'd really like to crack this issue. |
Link to the code that reproduces this issue
https://github.com/ayushpaharia/kokoro-web-worker
To Reproduce
Install using
npm install
packages inluded
kokoro-js
motion
Run using
npm run dev
Current vs. Expected behavior
Current Behaviour:
Expected Behavior: (As I've seen in this example)
Kokoro JS Vite Demo
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #53-Ubuntu SMP PREEMPT_DYNAMIC Sat Jan 11 00:06:25 UTC 2025 Available memory (MB): 15675 Available CPU cores: 16 Binaries: Node: 22.9.0 npm: 10.8.3 Yarn: 1.22.22 pnpm: N/A Relevant Packages: next: 15.2.0-canary.33 // Latest available version is detected (15.2.0-canary.33). eslint-config-next: N/A react: 19.0.0 react-dom: 19.0.0 typescript: 5.7.3 Next.js Config: output: standalone
Which area(s) are affected? (Select all that apply)
create-next-app, Package Managers, React, Runtime, Webpack
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local)
Additional context
I'm trying to setup
kokoro-js
locally the TTS model to run in browser but I'm getting issues with getting the module to load.It works fine with vite so I'm not sure what the issue is here. I've tried using directly in my client and also in a webworker but it doesn't work
Although when I tried using
kokoro-js
via api endpoint it works.I'm trying to get it to run in the browser so that's not an option.
Issue also posted on
kokoro-js
repoIssue
The text was updated successfully, but these errors were encountered: