This error is related to the Webpacker and Babel setup that changed in Webpacker 5.1, so it is related to targets in that targets cause the static
elements to be used and the Babel setup has some trouble with that language feature.
it’s possible that some of the directories in the sample code weren’t updated properly, I’ll take a look.
Thanks!