react-scripts build failure on projects, due to 2 syntax "errors":
SyntaxError: Unexpected token punc 芦(禄, expected punc 芦:禄 [./~/react-modal/lib/components/Modal.js:103,0]SyntaxError: Unexpected token punc 芦(禄, expected punc 芦:禄 [./~/react-modal/lib/components/ModalPortal.js:80,0]react-modal dependencynpm run buildJust want the package command to be successful.
The reason of this error is simple, it's due to the used syntax for functions declaration:
removePortal () { and open () {removePortal: function () { and open: function () {confirming
Please, follow #336.
thanks for the other issue link ;)
Most helpful comment
thanks for the other issue link ;)