@bestmomo hmmm I am facing exactly the same error ... no solution found yet :(
Oct 25, 2016
4
Level 52
Webpack error on ES6
Hello,
I get a webpack error on ES6 :
E:\laragon\www\laravel5 25/10/2016 14:13:27,41
λ gulp
[14:13:39] Using gulpfile E:\laragon\www\laravel5\gulpfile.js
[14:13:39] Starting 'all'...
[14:13:39] Starting 'sass'...
[14:13:40] Finished 'sass' after 932 ms
[14:13:40] Starting 'webpack'...
{ [Error: ./~/buble-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/components/Panier.vue
Module build failed: Error
at ForOfStatement.initialise (E:\laragon\www\laravel5\node_modules\buble\dist\buble.umd.js:2004:65)
at E:\laragon\www\laravel5\node_modules\buble\dist\buble.umd.js:9381:56
at Array.forEach (native)
at BlockStatement.initialise (E:\laragon\www\laravel5\node_modules\buble\dist\buble.umd.js:9381:15)
at FunctionExpression.initialise (E:\laragon\www\laravel5\node_modules\buble\dist\buble.umd.js:858:12)
at FunctionExpression.initialise (E:\laragon\www\laravel5\node_modules\buble\dist\buble.umd.js:2098:31)
at Property.initialise (E:\laragon\www\laravel5\node_modules\buble\dist\buble.umd.js:858:12)
at E:\laragon\www\laravel5\node_modules\buble\dist\buble.umd.js:856:61
at Array.forEach (native)
@ ./resources/assets/js/components/Panier.vue 4:18-100
@ ./~/buble-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/components/App.vue
@ ./resources/assets/js/components/App.vue
@ ./resources/assets/js/app.js]
message: './~/buble-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/components/Panier.vue\nModule build failed: Error\n at ForOfStatement.initialise (E:\\laragon\\www\\laravel5\\node_modules\\buble\\dist\\buble.umd.js:2004:65)\n at E:\\laragon\\www\\laravel5\\node_modules\\buble\\dist\\buble.umd.js:9381:56\n at Array.forEach (native)\n at BlockStatement.initialise (E:\\laragon\\www\\laravel5\\node_modules\\buble\\dist\\buble.umd.js:9381:15)\n at FunctionExpression.initialise (E:\\laragon\\www\\laravel5\\node_modules\\buble\\dist\\buble.umd.js:858:12)\n at FunctionExpression.initialise (E:\\laragon\\www\\laravel5\\node_modules\\buble\\dist\\buble.umd.js:2098:31)\n at Property.initialise (E:\\laragon\\www\\laravel5\\node_modules\\buble\\dist\\buble.umd.js:858:12)\n
at E:\\laragon\\www\\laravel5\\node_modules\\buble\\dist\\buble.umd.js:856:61\n at Array.forEach (native)\n @ ./resources/assets/js/components/Panier.vue 4:18-100\n @ ./~/buble-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/components/App.vue\n @ ./resources/assets/js/components/App.vue\n @ ./resources/assets/js/app.js',
showStack: false,
showProperties: true,
plugin: 'webpack-stream',
__safety: { toString: [Function: bound ] } }
It fails to transform this ES6 code :
let total = 0;
for(let el of this.panier) {
total += el.prix * el.quantite
}
All is OK with ES5 code.
I read this post but the solution doesn't work for me.
AnyOne has an idea ?
Please or to participate in this conversation.