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] [CT] react-resize-detector throws Identifier 'React' has already been declared #20990

Closed
cscheffauer opened this issue Feb 17, 2023 · 2 comments

Comments

@cscheffauer
Copy link

Context:

  • Playwright Version: 1.29.2
  • Operating System: Mac
  • Node.js version: 16.10
  • Browser: Chromium

Using the react-resize-detector library in Playwright Component Tests (React) throws a [commonjs] Identifier 'React' has already been declared (2:10) error.

This might be somehow related to:
#15351

Repro

https://github.com/cscheffauer/ct-129-resize-detector-repro

Clone the repo
npm ci
npm run test-ct
See the [commonjs] Identifier 'React' has already been declared (2:10) error in console

@sand4rt
Copy link
Collaborator

sand4rt commented Feb 18, 2023

@cscheffauer it seems to be a problem on their end. It should be resolved then this one is merged: maslianok/react-resize-detector#232.

edit:

This issue is fixed if you update "react-resize-detector": "8.0.3" to "react-resize-detector": "8.0.4"

@cscheffauer
Copy link
Author

@sand4rt brilliant! thanks for the hint - it is building now fine 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants