astefanutti/scratch-node

Not working with flatstr. "SyntaxError: Unexpected token %"

FedericoBiccheddu opened this issue · 2 comments

I think the problem is caused by the flag --allow-natives-syntax used here: https://github.com/davidmarkclements/flatstr/blob/1b63eebba9e88c7d21d1643055e22aa830b3e12b/index.js

Sadly, I have no idea what to do to help with this issue.

Node v12.1.0
flatstr v1.0.9

Apparently, there have been a couple of fixes for Node 12 required:

davidmarkclements/flatstr@689e327
davidmarkclements/flatstr@4306e65

It may help to upgrade flatstr to version 1.0.11.

Thank you, the last commit seems to fix the problem.