1

I meet a problem when I'm integrating plugin @babel/plugin-proposal-optional-chaining, and it throws error like this:

constructors in/after an Optional Chain are not allowed.

How to resolve this problem? Thanks. enter image description here

norbitrial
  • 14,716
  • 7
  • 32
  • 59
  • 1
    I encountered this problem also, but it went away after bumping up my version of Babel (and possibly other packages related to Babel). Also note that VSCode isn't using Typescript 3.7 yet, so you'll still get errors showing above. For more info, there's already a great stackoverflow post here: https://stackoverflow.com/questions/39668731/what-typescript-version-is-visual-studio-code-using-how-to-update-it – prograhammer Nov 18 '19 at 04:05

0 Answers0