You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, translate is using ES6, so you would either have to upgrade uglify if you want to output ES6 in your project, or transpile your dependencies from ES6 to ES5. Please read these threads:
Heya
Everything works fine on dev environment, how ever when i run "npm run buid" i get the following error:
ERROR in static/js/vendor.50a272b1ad0d23afecab.js from UglifyJs
SyntaxError: Unexpected token: operator (>) [./~/translate/translate.min.js:1,6121]
Any idea why and how i can resolve this problem?
mydependencies are :
"scripts": {
"dev": "node build/dev-server.js",
"build": "node build/build.js",
"lint": "eslint --ext .js,.vue src"
},
"dependencies": {
"bootstrap": "^3.3.7",
"chart.js": "^2.3.0",
"echarts": "^4.1.0",
"element-ui": "^1.2.9",
"es6-promise": "^4.2.4",
"hchs-vue-charts": "^1.1.4",
"moment": "^2.17.1",
"node-sass": "^3.10.1",
"progressbar.js": "^1.0.1",
"sass-loader": "^4.0.2",
"sass-resources-loader": "^1.2.0",
"translate": "^1.0.3",
"tween.js": "^16.6.0",
"vue": "^2.2.4",
"vue-i18n": "^8.1.0",
"vue-pose": "^0.5.0",
"vue-resource": "^1.2.1",
"vue-router": "^2.2.0",
"vuex": "^2.2.1"
},
"devDependencies": {
"autoprefixer": "^6.4.0",
"babel-core": "^6.0.0",
"babel-eslint": "^7.0.0",
"babel-loader": "^6.0.0",
"babel-plugin-transform-runtime": "^6.0.0",
"babel-preset-es2015": "^6.0.0",
"babel-preset-stage-2": "^6.0.0",
"babel-register": "^6.0.0",
"chalk": "^1.1.3",
"connect-history-api-fallback": "^1.1.0",
"css-loader": "^0.25.0",
"element-theme-default": "^1.3.0-beta.1",
"eslint": "^3.7.1",
"eslint-config-standard": "^6.1.0",
"eslint-friendly-formatter": "^2.0.5",
"eslint-loader": "^1.5.0",
"eslint-plugin-html": "^1.3.0",
"eslint-plugin-promise": "^2.0.1",
"eslint-plugin-standard": "^2.0.1",
"eventsource-polyfill": "^0.9.6",
"express": "^4.13.3",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.9.0",
"function-bind": "^1.0.2",
"html-webpack-plugin": "^2.8.1",
"http-proxy-middleware": "^0.17.2",
"json-loader": "^0.5.4",
"opn": "^4.0.2",
"ora": "^0.3.0",
"semver": "^5.3.0",
"shelljs": "^0.7.4",
"url-loader": "^0.5.7",
"vue-loader": "^9.4.0",
"vue-style-loader": "^1.0.0",
"webpack": "^1.13.2",
"webpack-dev-middleware": "^1.8.3",
"webpack-hot-middleware": "^2.12.2",
"webpack-merge": "^0.14.1"
},
"engines": {
"node": ">= 4.0.0",
"npm": ">= 3.0.0"
}
Thankyou
The text was updated successfully, but these errors were encountered: