-
Notifications
You must be signed in to change notification settings - Fork 14
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
ES6 import compliation #12
Comments
Could you please give us the stack trace you got while compiling? We cannot help you if we do not know where this happens. Thanks. |
here's my browserfy package.json {
"name": "Collections",
"version": "1.0.0",
"description": "Collections System for CSAB",
"repository": "None",
"main": "js/App.js",
"dependencies": {
"flux": "~2.1.0",
"mixin": "*",
"react": "~0.13.3",
"react-bootstrap": "~0.23.7",
"react-bootstrap-table": "*",
"react-router": "^0.13.3",
"react-select": "*",
"react-tools": "~0.13.3",
"babel-jest": "*",
"jest-cli": "*",
"react-router-bootstrap": "~0.18",
"underscore": "~1.8.3"
},
"devDependencies": {
"babelify": "~6.1.3",
"browserify": "~4.2.2",
"envify": "~2.0.1",
"reactify": "~1.1.1",
"uglify-js": "~2.4.15",
"watchify": "~3.3.0"
},
"scripts": {
"start": "watchify -o public/js/collections.js -t babelify -v -d src/App.js",
"build": "NODE_ENV=production browserify | uglifyjs -cm > dist/collections.min.js",
"test": "jest"
},
"browserify": {
"transform": [
"babelify",
"envify"
]
},
"jest": {
"scriptPreprocessor": "babel-jest",
"unmockedModulePathPatterns": ["react"]
},
"author": "Aylwin Agraviador",
"license": "Apache-2.0"
} used |
I do not know Your error is weird as it triggers a unexpected token on the line: if(!userAgent) { which is not en ES6/7 code. BTW, try to add some markdown to your post. It improves its readability (I've done it for your previous post) 😉 |
I got a similar compilation issue after upgrading to
I'm using webpack, haven't resolved it yet but I imagine it's the same as in the S/O issue |
I have problems too, getting this error: Unexpected token (2:7) while parsing react-animate/src/index.jsx, I have all presents in babel. |
Same here (with babelify) |
Errors compiling index.jsx due to syntax errors. Newbie so I've tried changing lint files to no avail
The text was updated successfully, but these errors were encountered: