kzima / vuestrap

Vuestrap Javascript wrapper for Bootstrap 4 components.
MIT License
105 stars 11 forks source link

Any Guide to Integrate it in Laravel 5.2? #2

Open masterpowers opened 8 years ago

masterpowers commented 8 years ago

Ive actually followed your gist... I already have that before a laravel app set up... npm install...

And as my first time diving to webpack, i didnt know there is a dependancies of webpack... i did try to installed that globally...

so as the other packages you sited in your gist

{
  "private": true,
  "devDependencies": {
    "gulp": "^3.8.8",
    "laravel-elixir-webpack": "^0.2.2",

  },
  "dependencies": {
    "autoprefixer-loader": "^3.1.0",
    "laravel-elixir": "^4.0.0",
    "bootstrap-sass": "^3.0.0",
    "vuestrap": "^1.0.0",
    "vuestrap-base-components": "^0.4.1",
    "vuestrap-theme-loader": "^0.1.2",
    "html-loader": "^0.3.0",
    "babel-core": "^5.8.33",
    "babel-eslint": "^4.1.3",
    "babel-loader": "^5.3.3",
    "css-loader": "^0.21.0",
    "sass-loader": "^3.1.1",
    "style-loader": "^0.13.0",
  }
}

so far im getting this error over and over after following your gist

ERROR in ./resources/assets/js/app.js
Module parse failed: /home/vagrant/codes/node_modules/babel-loader/index.js!/home/vagrant/codes/mysite.dev/resources/assets/js/app.js Line 3: Unexpected token
You may need an appropriate loader to handle this file type.
| // in resources/assets/js/index.js
|
| import badge from 'vuestrap-base-components/src/components/badge';
| import jumbotron from 'vuestrap-base-components/src/components/jumbotron';
|
 @ multi main
masterpowers commented 8 years ago

i also tried using this package wrapper for webpack

require('laravel-elixir-webpack');

add it on my gulpfile.js but no luck...

it seems there is some dependencies missing...

kzima commented 8 years ago

Hey @masterpowers, I am working on a complete new version of vuestrap that would have no other dependencies and will work with webpack and browserfiy out of the box. So stay tuned :)

masterpowers commented 8 years ago

cant wait for it thanks