-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Laravel elixir: Module build failed: SyntaxError: 'with' in strict mode #33
Comments
Hi @iraklisg! Which version of node and Elixir are you using? Thank you! |
Hi @iraklisg, I'm using Laravel /**
* Vue is a modern JavaScript library for building interactive web interfaces
* using reactive data binding and reusable components. Vue's API is clean
* and simple, leaving you to focus on building your next great project.
*/
const Vue = window.Vue = require('vue');
const VueMaterial = require('vue-material');
const VueResource = require('vue-resource');
Vue.use(VueMaterial.default);
Vue.use(VueResource); To load CSS, you may append this line to your // Vue Material
@import "node_modules/vue-material/dist/vue-material"; Run: gulp Everything works fine now. Here's my {
"private": true,
"scripts": {
"prod": "gulp --production",
"dev": "gulp watch"
},
"devDependencies": {
"bootstrap-sass": "^3.3.7",
"css-loader": "^0.25.0",
"gulp": "^3.9.1",
"jquery": "^3.1.0",
"laravel-elixir": "^6.0.0-11",
"laravel-elixir-vue-2": "^0.2.0",
"laravel-elixir-webpack-official": "^1.0.2",
"lodash": "^4.16.2",
"vue": "^2.0.2",
"vue-material": "^0.2.0",
"vue-resource": "^1.0.3"
},
"dependencies": {}
} |
worked for me thanks 👍 :) @krisanalfa |
@krisanalfa Thanks a lot man. I will improve the documentation adding this Elixir part. As the Laravel community embraced Vue, this can help more user to figure it out how to work with Vue Material. |
Hope I can contribute to it's development too, gotta have a couple time firstly to understanding this great work. But anyway, I am so glad to help, man. |
@krisanalfa sorry for the late reply, I just found the time to check your solution and I do confirm that everything works fine. @marcosmoura congrats for the polished work you've done so far |
|
tanks marcos |
* comp(MdTable): create base files for dynamic table * test(MdTable): remove test * comp(MdTable): rename base files * feat(MdTable): create base styles and sort functionality * feat(MdTable): create base styles for selection * feat(MdTable): add auto sort * feat(MdTable): create fixed headers * feat(MdTable): improve examples * feat(MdTable): improve examples * perf: add bundle analyzer and cut almost 20% of garbage * perf: add bundle analyzer only on minified build * chore: remove garbage * refactor(MdField): improve transition when focused * revert(MdSelect): readd disabled parameter to fake input * feat(MdTable): better look for fixed header * feat(MdTable): add the great and new empty state for tables * feat(MdTable): fine tune empty state for tables * docs(Core): make home icons appear * docs(Core): finish new home layout * chore: fix conflicts * chore: fix conflicts * feat(MdTable): add single selection support * feat(MdTable): add single selection support * feat(MdTable): add support for table without scoped template * feat(MdTable): add option for multiple selection * feat(MdTable): add alternate headers * feat(MdTable): add alternate headers * feat(MdTable): add alternate headers * chore: remove file with wrong case * chore: add file with correct case * fix(MdTable): single selection working without property as tue * feat(MdTable): make single selection work as a toggle * chore: remove junk * feat(MdTable): add pagination css
I didi the following procedure using Vue2 and a fresh Laravel 5.3 install
npm install --save vue-material
In my js entry file (assets/js/app.js)
In my css entry file (assets/css/app.scss)
@import "node_modules/vue-material/dist/vue-material.css";
In my gulpfile
But I get the following error
The text was updated successfully, but these errors were encountered: