Welcome to the Linux Foundation Forum!

Error in training: "This syntax is not allowed when 'erasableSyntaxOnly' is enabled

frederique
frederique Posts: 2
edited March 29 in LFS140 Class Forum

Hi,

First of all, thank you for this great training!

In chapter 6, on this page: https://trainingportal.linuxfoundation.org/learn/course/feature-flagging-with-openfeature-lfs140/running-experiments-using-openfeature/closing-the-loop?page=1 , I get three errors on the last line of the code (which I copied from the page, so probably not a typo): "return <OpenFeatureProvider>{children}</OpenFeatureProvider>":

  • "This syntax is not allowed when 'erasableSyntaxOnly' is enabled"
  • "'OpenFeatureProvider' refers to a value, but is being used as a type here. Did you mean 'typeof OpenFeatureProvider'?"
  • "Unterminated regular expression literal"

My typescript knowledge is not very well, can you help me to solve this issue so I can proceed with the training?

Thank you in advance!

Frederique

Answers

  • frederique
    frederique Posts: 2

    [Edit] The branch running-experiments/add-analytics solved the issue

Categories

Upcoming Training