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

Local development build fails with the "--turbo" flag #22

Open
owenstack opened this issue Jan 31, 2025 · 3 comments
Open

Local development build fails with the "--turbo" flag #22

owenstack opened this issue Jan 31, 2025 · 3 comments

Comments

@owenstack
Copy link

When running the template repository with the "--turbo" flag, build fails. Seems to be from how modules are handled with turbopack.
Mainly from the "jstack" package

Image

@joschan21
Copy link
Collaborator

havent tried turbo yet, thanks for raising

@hushino
Copy link

hushino commented Feb 1, 2025

Have the same issue, and this is my next.config
experimental: { authInterrupts: true, staleTimes: { dynamic: 30, }, ppr: true, reactCompiler: true, taint: true, dynamicIO: true, },

in package
"dev": "next dev --turbo -p 3001",
"next": "^15.2.0-canary.33",
I don't know if there are more problems behind this, I leave it for whoever wants to see

@hushino
Copy link

hushino commented Feb 1, 2025

I figure the error is the package "@upstash/redis/cloudflare" in router.ts. You can safety remove the code from the generate server.js if no uses ws in your app or null the constructor in router.ts to anule generation.
Also I recommend put in tsconfig a modern approach.
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"lib": ["ESNext",

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

3 participants