Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Turbopack can't resolve experimentalDecorators from extended tsconfig #78782

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

Open
hamidrezahanafi opened this issue May 2, 2025 · 1 comment
Labels
linear: turbopack Confirmed issue that is tracked by the Turbopack team. Turbopack Related to Turbopack with Next.js.

Comments

@hamidrezahanafi
Copy link

Link to the code that reproduces this issue

https://github.com/hamidrezahanafi/turbopack-legacy-decorators

To Reproduce

  1. start the app in development mode with turbo option (next dev --turbopack)
  2. notice the error Error: An element descriptor's .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "undefined"
  3. move "experimentalDecorators": true from tsconfig-base.json to tsconfig.json
  4. error goes away

Current vs. Expected behavior

Current: experimentalDecorators is not resolved from an extended tsconfig json file, also this is not happening without --turbo

expected: experimentalDecorators can be resolved from any extended tsconfig file

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.4.0: Fri Apr 11 18:32:50 PDT 2025; root:xnu-11417.101.15~117/RELEASE_ARM64_T6041
  Available memory (MB): 49152
  Available CPU cores: 14
Binaries:
  Node: 22.14.0
  npm: 10.9.2
  Yarn: 1.22.22
  pnpm: N/A
Relevant Packages:
  next: 15.3.1 // No Next.js version data was found.
  eslint-config-next: N/A
  react: 19.1.0
  react-dom: 19.1.0
  typescript: 5.8.3
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 dev (local)

Additional context

No response

@github-actions github-actions bot added the Turbopack Related to Turbopack with Next.js. label May 2, 2025
@mischnic
Copy link
Contributor

mischnic commented May 5, 2025

The relevant function:

pub async fn get_decorators_transform_options(

@mischnic mischnic added the linear: turbopack Confirmed issue that is tracked by the Turbopack team. label May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear: turbopack Confirmed issue that is tracked by the Turbopack team. Turbopack Related to Turbopack with Next.js.
Projects
None yet
Development

No branches or pull requests

2 participants