Having recently updated babel, I ran into the error:
'loose' mode configuration must be the same for both @babel/plugin-proposal-class-properties and @babel/plugin-proposal-private-methods
Good folks at babel/babel#11622 tracked it to create-react-app setting loose flag on class properties transform, while I've included shippedProposals into babel presets in my setup. I've never set anything to loose or "firm" explicitly.
The work-around, for me, was to add loose to preset flags.
I guess the question is:
- should this be documented?
- if someone tweaks babel settings, are they on their own and should eject?
Having recently updated babel, I ran into the error:
'loose' mode configuration must be the same for both @babel/plugin-proposal-class-properties and @babel/plugin-proposal-private-methodsGood folks at babel/babel#11622 tracked it to
create-react-appsettinglooseflag on class properties transform, while I've includedshippedProposalsinto babel presets in my setup. I've never set anything tolooseor "firm" explicitly.The work-around, for me, was to add
looseto preset flags.I guess the question is: