tc39/proposal-optional-chaining

Module build failed: TypeError: Cannot read property 'loose' of undefined

devdudeio opened this issue · 2 comments

Getting this error when I´m on stage-1 and trying to use chaining syntax

Module build failed: TypeError: Cannot read property 'loose' of undefined

.babelrc

{
  "presets": [
    "env",
    "react",
    "stage-1"
  ],
  "plugins": [
    "transform-optional-chaining"
  ]
}

also without the plugin (should be on stage-1 i guess?) its not working

@RLech this repository is for discussing the details of the optional chaining proposal, not any particular implementation.

It looks like you probably want to file a bug on Babel: https://github.com/babel/babel . Or for this particular issue, you may be able to get help by asking on their Slack, which is linked in the top-right of https://babeljs.io/ .

The Babel plugin is just an early implementation based on the current state of the proposed feature, and isn't associated with this repo. Babel has a monorepo ( the plugin itself is here: https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-optional-chaining ), so I think all issues should be filed in the the one babel/babel project.

Thanks for the explanation, @alangpierce . Closing in favor of a follow-up in another repo.