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

[Bug]: experimental-ct-react with FluentUI fails on TypeError: Runtime.jsxs is not a function #34914

Open
krystofmatejka opened this issue Feb 25, 2025 · 0 comments
Assignees
Labels

Comments

@krystofmatejka
Copy link

krystofmatejka commented Feb 25, 2025

Version

1.50.1

Steps to reproduce

  1. Clone https://github.com/krystofmatejka/playwright-ct-fluentui-bug
  2. npm i
  3. npm run test:component

Expected behavior

I made two components, TextComponent that renders only text and ButtonComponent that imports Button component from @fluentui/react-components.

I expect that the button test will work.

Actual behavior

It only shows a white screen. The console says TypeError: Runtime.jsxs is not a function.

TextComponent works as expected, only ButtonComponent fails.

Image

Additional context

The issue only occurs in @playwright/experimental-ct-react, it works fine in @playwright/test or on the web.

Feel free to reach out, I'm willing to help investigate.

Environment

System:
    OS: Windows 11 10.0.26100
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12800H
    Memory: 31.72 GB / 63.67 GB
  Binaries:
    Node: 20.12.2 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - C:\Program Files\nodejs\yarn.CMD
    npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD
    bun: 1.1.15 - ~\.bun\bin\bun.EXE
  IDEs:
    VSCode: 1.97.2 - C:\Users\kmatejka\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
  Languages:
    Bash: 5.1.16 - C:\WINDOWS\system32\bash.EXE
@agg23 agg23 self-assigned this Feb 25, 2025
@yury-s yury-s added the v1.52 label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants