spatie/vue-table-component

Warning with the moment dependency

davidavz opened this issue · 1 comments

When I try to add this package I have :

warning " > vue-table-component@1.8.1" has unmet peer dependency "moment@^2.18.1".

And then when I try to build :

ERROR in ./node_modules/vue-table-component/dist/index.js
Module not found: Error: Can't resolve 'moment' in 'C:\dev\test\node_modules\vue-table-component\dist'
 @ ./node_modules/vue-table-component/dist/index.js 3:27-44

Any idea?

Moment is a peer dependency, you'll need to install it too.

npm install moment

Or with Yarn

yarn add moment