react-modal icon indicating copy to clipboard operation
react-modal copied to clipboard

SyntaxError: Unexpected token export

Open diegohaz opened this issue 9 years ago • 7 comments

https://travis-ci.org/diegohaz/arc/builds/221734613#L251

diegohaz avatar Apr 13 '17 14:04 diegohaz

I just installed this package and am getting the same error whenever I try to import the Modal.

I get this error simply by including the line import Modal from 'react-modal'

nickswope avatar Apr 13 '17 14:04 nickswope

Same issue :disappointed:

Kyr avatar Apr 13 '17 14:04 Kyr

I also get this error when updating to version 1.7.4. This was not an issue in any version previous to this. I will revert for now.

KyleKilbride avatar Apr 13 '17 14:04 KyleKilbride

Shoot looks like I missed some ES2015 in my review of #358.

I'll get a fix up ASAP. Sorry for your builds breaking.

claydiffrient avatar Apr 13 '17 14:04 claydiffrient

Okay please give 1.7.5 a shot :)

claydiffrient avatar Apr 13 '17 14:04 claydiffrient

Works great, thank you!

KyleKilbride avatar Apr 13 '17 14:04 KyleKilbride

Hmm, my bad. I've forget to remove the 'export' syntax when I moved the PR from master to v1. See #358. (Thanks)

diasbruno avatar Apr 13 '17 14:04 diasbruno