spatie / vue-table-component

A straight to the point Vue component to display tables
http://vue-table-component.spatie.be
MIT License
588 stars 149 forks source link

Installation failed #166

Closed espositodaniele closed 6 years ago

espositodaniele commented 6 years ago

Installation failed

Hello, I'm just trying to install this package following the instructions:

npm install vue-table-component --save

Next, you must register the component. The most common use case is to do that globally.

//in your app.js or similar file
import Vue from 'vue';
import { TableComponent, TableColumn } from 'vue-table-component';

Vue.component('table-component', TableComponent);
Vue.component('table-column', TableColumn);

then when I compile with webpack I got this error:

WARNING in ./resources/assets/js/bootstrap.js
63:33-47 "export 'TableComponent' was not found in 'vue-table-component'
 @ ./resources/assets/js/bootstrap.js
 @ ./resources/assets/js/app.js
 @ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss

WARNING in ./resources/assets/js/bootstrap.js
64:30-41 "export 'TableColumn' was not found in 'vue-table-component'
 @ ./resources/assets/js/bootstrap.js
 @ ./resources/assets/js/app.js
 @ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss

Anyone can help me with this?

Thanks :+1:

ShaneShipston commented 6 years ago

I assume you inadvertently downloaded the alpha version that was just published to NPM try using npm install vue-table-component@1.9.1 --save instead

espositodaniele commented 6 years ago

Yes, I've done that already and forgot to close the issue. Thanks anyway @ShaneShipston :+1:

Looking forward to check the new release :100: