Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected token { #138

Closed
rkmax opened this issue Dec 10, 2014 · 2 comments
Closed

Unexpected token { #138

rkmax opened this issue Dec 10, 2014 · 2 comments
Labels
component: icon button This is the name of the generic UI component, not the React module!

Comments

@rkmax
Copy link
Contributor

rkmax commented Dec 10, 2014

I have the following deps

"dependencies": {
    "material-ui": "^0.3.3",
    "node-jsx": "^0.12.4",
    "react": "~0.12"
  },
  "devDependencies": {
    "browserify": "~7.0",
    "nodemon": "~1.2.0",
    "reactify": "~0.17",
    "uglify-js": "~2.4",
    "watchify": "~2.1",
  }

I get the error

.../node_modules/material-ui/src/js/icon-button.jsx:19
    var {
        ^
SyntaxError: Unexpected token {

@gpbl
Copy link
Contributor

gpbl commented Dec 10, 2014

@rkmax you need to enable es6 transformations in reactify.

@rkmax
Copy link
Contributor Author

rkmax commented Dec 10, 2014

@gpbl thanks

@rkmax rkmax closed this as completed Dec 13, 2014
@oliviertassinari oliviertassinari added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 25, 2022
@zannager zannager added component: icon button This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: icon button This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

4 participants