Skip to content

[Turbopack] Build: The high bits of the position 1401321 are not all 0s or 1s: 1 #82584

@AleksandarDev

Description

@AleksandarDev

Link to the code that reproduces this issue

https://github.com/gredice/gredice

To Reproduce

  1. Checkout to branch: next-15-4-build
  2. Install packages with pnpm i
  3. Try to build the project using pnpm build --filter=garden

Current vs. Expected behavior

Expecting all apps to build, but we get error on 2 apps that use React Three Fiber. Issue is not present with < 15.4 nextjs version, even with turbo build.

Looks like it has issues with dynamic component loaded from package (not prebuilt):

> RUST_BACKTRACE=full next build --turbopack

   ▲ Next.js 15.4.6 (Turbopack)
   - Environments: .env
   - Experiments (use with caution):
     ✓ reactCompiler

   Creating an optimized production build ...

warn - The class `data-[state=closed]:slide-out-to-top-[48%]` is ambiguous and matches multiple utilities.
warn - If this is content and not a class, replace it with `data-&lsqb;state=closed&rsqb;:slide-out-to-top-[48%]` to silence this warning.

warn - The class `data-[state=open]:slide-in-from-top-[48%]` is ambiguous and matches multiple utilities.
warn - If this is content and not a class, replace it with `data-&lsqb;state=open&rsqb;:slide-in-from-top-[48%]` to silence this warning.

thread 'tokio-runtime-worker' panicked at turbopack/crates/turbopack-ecmascript/src/lib.rs:2435:13:
The high bits of the position 1401321 are not all 0s or 1s: 1
stack backtrace:
   0:        0x15cbc24d4 - _napi_register_module_v1
   1:        0x15cbe5e54 - _napi_register_module_v1
   2:        0x15cbbd884 - _napi_register_module_v1
   3:        0x15cbc2388 - _napi_register_module_v1
   4:        0x15cbc49e0 - _napi_register_module_v1
   5:        0x15cbc4830 - _napi_register_module_v1
   6:        0x15cbc54e0 - _napi_register_module_v1
   7:        0x15cbc50d0 - _napi_register_module_v1
   8:        0x15cbc2998 - _napi_register_module_v1
   9:        0x15cbc4d78 - _napi_register_module_v1
  10:        0x15cd31e58 - _napi_register_module_v1
  11:        0x15a902598 - _BrotliDecoderVersion
  12:        0x15ab37d64 - _BrotliDecoderVersion
  13:        0x15abc5ef0 - _BrotliDecoderVersion
  14:        0x15ac24094 - _BrotliDecoderVersion
  15:        0x15abc678c - _BrotliDecoderVersion
  16:        0x15ac239b4 - _BrotliDecoderVersion
  17:        0x15abef338 - _BrotliDecoderVersion
  18:        0x15a8f0d8c - _BrotliDecoderVersion
  19:        0x157e011e4 - <unknown>
  20:        0x157c4d430 - <unknown>
  21:        0x157c19540 - <unknown>
  22:        0x157c184cc - <unknown>
  23:        0x157c4d1d0 - <unknown>
  24:        0x157d6f338 - <unknown>
  25:        0x157bcf4c4 - <unknown>
  26:        0x157bda184 - <unknown>
  27:        0x157bda538 - <unknown>
  28:        0x15cb8f378 - _napi_register_module_v1
  29:        0x15cb8e8c4 - _napi_register_module_v1
  30:        0x15cb60080 - _napi_register_module_v1
  31:        0x15cb5fb80 - _napi_register_module_v1
  32:        0x15cb8e0f4 - _napi_register_module_v1
  33:        0x15cb6751c - _napi_register_module_v1
  34:        0x15cb76d44 - _napi_register_module_v1
  35:        0x15cb531dc - _napi_register_module_v1
  36:        0x15cb4d298 - _napi_register_module_v1
  37:        0x15cb66154 - _napi_register_module_v1
  38:        0x15cb88f44 - _napi_register_module_v1
  39:        0x15cb55ff4 - _napi_register_module_v1
  40:        0x15cb563a8 - _napi_register_module_v1
  41:        0x15cbc78f8 - _napi_register_module_v1
  42:        0x186e4fc0c - __pthread_cond_wait
 ✓ Finished writing to disk in 219ms
 ⚠ Support for Turbopack builds is experimental. We don't recommend deploying mission-critical applications to production.

- Turbopack currently always builds production source maps for the browser. This will include project source code if deployed to production.
- It is expected that your bundle size might be different from `next build` with webpack. This will be improved as we work towards stability.
- This build is without disk caching; subsequent builds will become faster when disk caching becomes available.
- When comparing output to webpack builds, make sure to first clear the Next.js cache by deleting the `.next` directory.

Provide feedback for Turbopack builds at https://github.com/vercel/next.js/discussions/77721

> Build error occurred
[Error: Turbopack build failed with 1 errors:
./packages/game/src/GameSceneWrapper.tsx
Code generation for chunk item errored
An error occurred while generating the chunk item [project]/packages/game/src/GameSceneWrapper.tsx [app-client] (ecmascript)

Caused by:
- The high bits of the position 1401321 are not all 0s or 1s: 1

Debug info:
- An error occurred while generating the chunk item [project]/packages/game/src/GameSceneWrapper.tsx [app-client] (ecmascript)
- Execution of *EcmascriptChunkItemContent::module_factory failed
- Execution of <MergedEcmascriptModuleChunkItem as EcmascriptChunkItem>::content_with_async_module_info failed
- Execution of *EcmascriptChunkItemContent::new failed
- Execution of EcmascriptModuleContent::new_merged failed
- The high bits of the position 1401321 are not all 0s or 1s: 1

]

Provide environment information

This project is configured to use pnpm because /Users/aleks/Documents/GitHub/gredice/package.json has a "packageManager" field
This project is configured to use pnpm because /Users/aleks/Documents/GitHub/gredice/package.json has a "packageManager" field

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:28:30 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6030
  Available memory (MB): 18432
  Available CPU cores: 11
Binaries:
  Node: 22.13.1
  npm: 11.3.0
  Yarn: N/A
  pnpm: 10.14.0
Relevant Packages:
  next: 15.4.6 // Latest available version is detected (15.4.6).
  eslint-config-next: 15.4.5
  react: 19.1.1
  react-dom: 19.1.1
  typescript: 5.9.2
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Turbopack

Which stage(s) are affected? (Select all that apply)

next build (local), Vercel (Deployed)

Additional context

No response

PACK-5244

Metadata

Metadata

Assignees

No one assigned

    Labels

    TurbopackRelated to Turbopack with Next.js.linear: turbopackConfirmed issue that is tracked by the Turbopack team.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions