React-modal: SyntaxError: Unexpected token export

Created on 13 Apr 2017  路  7Comments  路  Source: reactjs/react-modal

Most helpful comment

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

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

All 7 comments

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'

Same issue :disappointed:

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.

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

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

Okay please give 1.7.5 a shot :)

Works great, thank you!

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

claydiffrient picture claydiffrient  路  4Comments

leoasis picture leoasis  路  4Comments

phaedryx picture phaedryx  路  4Comments

davidmfoley picture davidmfoley  路  3Comments

shmekla picture shmekla  路  3Comments