-
Notifications
You must be signed in to change notification settings - Fork 30
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
SyntaxError: Unexpected token export Using Webpack #3
Comments
Can you please share me how you are importing the module inside your component ? That can help me reproduce the issue and look into it. |
Sure thing. I've tied a couple ways, 1.) by importing it (they way i have been with other components) in my main js file, which includes VueRouter & a call to 'new Vue': 2.) by importing it in to a component: Is it maybe the webpack config? If that isn't enough info, I'm happy to send more. Thanks for your help |
Yup. Seems to be an issue with webpack configuration. Can you share the webpack config of your project ? |
Here's webpack.base.conf var path = require('path') var env = process.env.NODE_ENV module.exports = { & webpack.prod.conf var path = require('path') var webpackConfig = merge(baseWebpackConfig, { if (config.build.productionGzip) { webpackConfig.plugins.push( module.exports = webpackConfig & webpack.dev.conf var config = require('../config') // add hot-reload related code to entry chunks module.exports = merge(baseWebpackConfig, { |
Hey, first off, thanks for building something hugely useful!..
Secondly, I'm having a rough-time using it.
FileUpload.vue line: 6 Uncaught SyntaxError: Unexpected token export
package.json below... any ideas?
"dependencies": {
"axios": "^0.15.3",
"babel-polyfill": "^6.23.0",
"bootstrap-vue": "^0.5.1",
"chart.js": "^2.5.0",
"marker-clusterer-plus": "^2.1.4",
"sinon": "^2.1.0",
"update": "^0.7.4",
"vue": "^2.2.1",
"vue-axios": "^1.2.2",
"vue-chartjs": "^2.3.8",
"vue-material": "^0.6.3",
"vue-router": "^2.1.1",
"vue-simple-upload": "^0.1.6",
"vue-tables-2": "^0.3.0",
"vue2-google-maps": "^0.6.0",
"vuestrap-base-components": "^0.8.10",
"vuikit": "^0.6.2"
},
The text was updated successfully, but these errors were encountered: