Questions tagged [turbopack]

For questions about Turbopack, a Rust-based incremental bundler optimized for JavaScript/TypeScript.

19 questions
6
votes
1 answer

Can Turbopack be used outside NextJs?

Since it's apparently very fast, It would be nice if it could be used outside for multiple projects like Vite. Couldn't find much information about it on their website https://turbo.build/pack Went to https://github.com/vercel/turbo but couldn't…
renegadevi
  • 73
  • 5
3
votes
1 answer

How to resolve crypto.getRandomValues() not supported?

After switching to turbopack i have following error: https://next-auth.js.org/errors#jwt_session_error crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported Are there any solutions to this?
Nazar Duma
  • 127
  • 1
  • 1
  • 9
2
votes
0 answers

Firestore Connection Issues in Next.js 13 Turbo Pack: Error "Could not reach Cloud Firestore backend"

I have already verified that my internet connection is stable, and I have double-checked my Firebase configuration. I have also made sure that I have installed the correct version of the firebase package and initialized Firebase and Firestore…
Tom Fan
  • 312
  • 1
  • 9
1
vote
0 answers

How to build and bundle a single package with Turbopack

It is advertised that Turbopack is a successor to Webpack. I have a monorepo where one of the TS packages needs to be built and bundled for Node.js and deployed to Firebase. Previously I was doing this with Webpack but now that I'm migrating to…
Thijs Koerselman
  • 21,680
  • 22
  • 74
  • 108
1
vote
0 answers

How to resolve modules with turbopack in NextJS 13

Node APIs are not available on the client, but many NextJS projects have nested dependencies to these APIs (i.e. fs). With webpack it's easy to adjust how the module resolves based on client/server environment, but it's unclear how to do so with…
Taylor Johnson
  • 1,845
  • 1
  • 18
  • 31
1
vote
1 answer

response.headers returning different structure depending on JavaScript bundler

I was experimenting with different bundlers in a Next.js 13 project where I am authenticating for a third party API. I was tinkering with the new Turbopack bundler and got my login working, but when I switched over to Webpack, my response.headers is…
Ryan
  • 71
  • 2
  • 6
1
vote
1 answer

Middleware in Next.js@13+ with Turbopack

I created a new Next.js@13.0.5 project with Turbopack and added middleware.ts file to the project's root directory. When I sent a request(e.g. /api/search?query=Hello), the middleware wasn't executed. Where is the location of middleware.ts file in…
tronx.dev
  • 138
  • 1
  • 11
1
vote
1 answer

When I run Next.js 13 with turbopack I get "TypeError: Class extends value #" but no error with webpack

I have an app that uses Next.js 13. I have been running it with Turbopack and a few commits ago it stopped working. It now fails with a vague error. It says TypeError: Class extends value # in the browser, Uncaught ReferenceError: $RefreshSig$ is…
ChristianOConnor
  • 820
  • 7
  • 29
0
votes
0 answers

Does Turbo (Turbopack) have an equivalent to the node-polyfill-webpack-plugin used in Webpack?

I'm currently working on a Node.js React project that uses Webpack for bundling. My Webpack configuration uses the node-polyfill-webpack-plugin to automatically include polyfills for any Node.js core modules that I'm using in my front-end code. I'm…
OpenGears
  • 102
  • 7
0
votes
0 answers

Uncaught TypeError: moment is undefined . When using turbopack

I using moment-jalali in my own project and everything workes as expected , But when I configure --turbo in package.json file , After runing project by npm run dev browser console thrown an error: After lookup in stack overflow site . I got some…
0
votes
0 answers

How to build/bundle a package with turborepo?

I am creating a CLI application using turborepo and typescript. I've created the monorepo using the official new turborepo command. "x" is one of my "apps". It has a src/index.ts file that says: console.log('hello world') But when I run turbo build,…
Acri
  • 3
  • 2
0
votes
0 answers

Error and warning messages in VSCode while running Next.js with Turbopack: Hidden paths and unresolved paths

Error and warning messages in VSCode while running Next.js with Turbopack: Hidden paths and unresolved paths I'm running a Next.js application with Turbopack, and I'm encountering some error and warning messages in Visual Studio Code (VSCode) during…
Tom Fan
  • 312
  • 1
  • 9
0
votes
0 answers

Exporting NextJS 13 project with Turbo to pure HTML / CSS with no minification and inline styles

I have a project in NextJS 13 that uses Turbopack and I need to export it to pure HTML / CSS with no minification Basically I expect the built project to look like something in the browser inspect element I've tried setting things like compression…
0
votes
0 answers

How to integrate @svgr/webpack to turbopack in next.js?

The documentation says that turbopack works with @svgr/webpack, but doesn't really want to work. If you run the project without --turbo (turbopack), everything works fine. And if run with --turbo, it gives an error: Error run turbopack: Processing…
0
votes
0 answers

vite build -w is not rebuilding on change

I'm doing a POC combining Vite plugin federation and Turbo repo for work (mostly as an alternative to single-spa, using Vite). As mentioned in Vite plugin federation's documentation: Only the Host side supports dev mode, the Remote side requires…
Jeremy
  • 1,447
  • 20
  • 40
1
2