-
Notifications
You must be signed in to change notification settings - Fork 395
[fix] Remove useDefineForClassFields from tsconfig #5332
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
Conversation
Remove the useDefineForClassFields compiler option from tsconfig.json to fix Playwright test configuration compatibility issues. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
🎭 Playwright Test Results✅ All tests passed across all browsers! ⏰ Completed at: 09/04/2025, 10:35:08 PM UTC 📊 Test Reports by Browser🎉 Your tests are passing across all browsers! |
|
In the spec, it says this is set to |
Add sno-fix-playwright branch prefix to i18n workflow trigger conditions to allow automated locale updates during Playwright-related fixes. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Analysis of i18n Playwright Test FailureThe Root CauseThe i18n collection scripts ( Why This Happens
The Issue with
|
- Set useDefineForClassFields to true in tsconfig.json to prevent TypeScript declare field issues - This avoids Babel transformation errors in Playwright i18n tests
- Remove explicit declare keywords from LGraphNode to fix Babel compilation - Set useDefineForClassFields to true to handle field initialization properly - This fixes the i18n Playwright test failures
- Remove useDefineForClassFields from tsconfig to maintain backward compatibility - Keep explicit field declarations removed to fix i18n Playwright tests - This balances both test suite requirements
- Remove declare keywords from all litegraph class fields - This fixes Babel TypeScript compilation in Playwright i18n tests - Maintains backward compatibility without useDefineForClassFields
- Add ! definite assignment assertions to properties that were using declare - This fixes TypeScript compilation errors while maintaining Babel compatibility - Properties are guaranteed to be assigned at runtime
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
|
close this as the solution is similar to - refactor: Remove TypeScript declare keywords for Playwright compatibility by snomiao · Pull Request #5304 · Comfy-Org/ComfyUI_frontend |
Summary
Remove the
useDefineForClassFieldscompiler option from tsconfig.json to fix Playwright test configuration compatibility issues.Changes
useDefineForClassFields: truefrom tsconfig.jsonTest plan
🤖 Generated with Claude Code
┆Issue is synchronized with this Notion page by Unito