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

Babel TypeScript transformer does not support satisfies operator in v13 #71960

Open
jduthon opened this issue Oct 28, 2024 · 0 comments
Open
Labels
bug Issue was opened via the bug report template.

Comments

@jduthon
Copy link

jduthon commented Oct 28, 2024

Link to the code that reproduces this issue

https://stackblitz.com/edit/vercel-next-js-elkp8u?file=pages%2Findex.tsx

To Reproduce

When using satisfies in the Next v13, incorrect syntax errors are thrown out as v13 is packaged with older versions of babel that do not have satisfies support.

Current vs. Expected behavior

With the latest (or higher than current) babel version, satisfies would work correctly.

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000
Binaries:
  Node: 20.17.0
  npm: 10.8.2
  Yarn: N/A
  pnpm: 8.6.1
Relevant Packages:
  next: 13.5.7
  eslint-config-next: 13.5.7
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.6.3
Next.js Config:
  output: N/A

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

Not sure

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

next build (local)

Additional context

There was an issue long ago about this here which was closed by a PR here, which made it into canary versions of 1.5.6 but somehow never to the full version.

@jduthon jduthon added the bug Issue was opened via the bug report template. label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

1 participant