Skip to content

Odd 'loose' mode configuration must be the same... #11622

@dimaqq

Description

@dimaqq

'loose' mode configuration must be the same for both @babel/plugin-proposal-class-properties and @babel/plugin-proposal-private-methods

I'm getting this error even though I don't use either of the proposals explicitly.
Thus, it's kinda hard for me to configure their loose modes 😆
I think they are brought in through a preset.

My config is:

  "babel": {
    "plugins": [
      "babel-plugin-macros"
    ],
    "presets": [
      [
        "@babel/preset-env",
        {
          "useBuiltIns": false,
          "shippedProposals": true,
          "debug": false
        }
      ]
    ]
  },
  "babelMacros": {
    "styledComponents": {
      "pure": true
    }
  },

I've recently done yarn upgrade and this error showed up.
Summary of babel versions that got upgraded in yarn.lock:

  • 7.9.6 → 7.10.0: core, runtime, compat-data, generator, helpers, parser, traverse, types, helper-compilation-targets, helper-create-class-features-plugin, helper-replace-supers, ...
  • 7.8.6 → 7.10.0: template
  • 7.8.3 → 7.10.0: helper-member-expressions-to-function, plugin-transform-spread
  • 7.9.0 → 7.10.0: plugin-transform-for-of
  • ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    i: regressionoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions