nx
Nx
GitHub
Nx
Workspace
GitHub
CI Pipeline Executions
Current execution
Succeeded
gh-36205
Runs and Agents
Timeline
Configuration
Self-Healing CI
Project Graph
Resource Usage
Analysis
Conformance
Runs
Current run
Succeeded
Tasks
Resource Usage
Insights
Compare tasks
Analytics
Sign in
Toggle sidebar
fix(js): support private methods and static blocks in babel preset The @nx/js/babel preset loads @babel/plugin-transform-class-properties on its own, which runs babel's shared class-features plugin. That plugin hard-errors on #private methods and static blocks unless their companion transforms are loaded too, so babel-jest failed with "Class private methods are not enabled" when transforming an ESM-only dependency that uses such syntax (un-ignored via transformIgnorePatterns). Load the companion class-features transforms next to class-properties: private-methods and private-property-in-object with the same loose setting (babel requires loose to match across the three), plus class-static-block. This clears the whole family of "not enabled" hard-errors, not just private methods.
nx-cloud record -- nx sync:check
⌘K
Succeeded
nx-cloud record -- nx sync:check
Click to copy
Linux
4 CPU cores
56b956e2
36218