ratiw / vue-table

data table simplify! -- vuetable is a Vue.js component that will automatically request (JSON) data from the server and display them nicely in html table with swappable/extensible pagination component.
MIT License
1.83k stars 303 forks source link

Module build failed: Error: Couldn't find preset "es2015" #156

Closed ahmedfaical closed 7 years ago

ahmedfaical commented 7 years ago

Hello Ratiw, i get this error in console and in npm run watch and really i don't found how can i resolve it ?


Uncaught Error: Module build failed: Error: Couldn't find preset "es2015" relative to directory "/Users/mac/webSto/node_modules/vuetable-2"
at /Users/mac/webSto/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
at Array.map (native)
at OptionManager.resolvePresets (/Users/mac/webSto/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
at OptionManager.mergePresets (/Users/mac/webSto/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
at OptionManager.mergeOptions (/Users/mac/webSto/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
at OptionManager.init (/Users/mac/webSto/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at File.initOptions (/Users/mac/webSto/node_modules/babel-core/lib/transformation/file/index.js:216:65)
at new File (/Users/mac/webSto/node_modules/babel-core/lib/transformation/file/index.js:139:24)
at Pipeline.transform (/Users/mac/webSto/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at transpile (/Users/mac/webSto/node_modules/babel-loader/lib/index.js:46:20)
at /Users/mac/webSto/node_modules/babel-loader/lib/fs-cache.js:79:18
at ReadFileContext.callback (/Users/mac/webSto/node_modules/babel-loader/lib/fs-cache.js:15:14)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:359:13)
at /Users/mac/webSto/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
at Array.map (native)
at OptionManager.resolvePresets (/Users/mac/webSto/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
at OptionManager.mergePresets (/Users/mac/webSto/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
at OptionManager.mergeOptions (/Users/mac/webSto/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
at OptionManager.init (/Users/mac/webSto/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at File.initOptions (/Users/mac/webSto/node_modules/babel-core/lib/transformation/file/index.js:216:65)
at new File (/Users/mac/webSto/node_modules/babel-core/lib/transformation/file/index.js:139:24)
at Pipeline.transform (/Users/mac/webSto/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at transpile (/Users/mac/webSto/node_modules/babel-loader/lib/index.js:46:20)
at /Users/mac/webSto/node_modules/babel-loader/lib/fs-cache.js:79:18
at ReadFileContext.callback (/Users/mac/webSto/node_modules/babel-loader/lib/fs-cache.js:15:14)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:359:13)
at Object.<anonymous> (http://localhost/assets/js/section/caproducts.js:30452:7)
at __webpack_require__ (http://localhost/assets/js/section/caproducts.js:20:30)
at Object.module.exports.render._vm (http://localhost/assets/js/section/caproducts.js:30461:3)
at __webpack_require__ (http://localhost/assets/js/section/caproducts.js:20:30)
at Object.<anonymous> (http://localhost/assets/js/section/caproducts.js:30823:93)
at __webpack_require__ (http://localhost/assets/js/section/caproducts.js:20:30)
at Object.module.exports.render._vm (http://localhost/assets/js/section/caproducts.js:31021:3)
at __webpack_require__ (http://localhost/assets/js/section/caproducts.js:20:30)
at Object.defineProperty.value (http://localhost/assets/js/section/caproducts.js:30801:36)
at __webpack_require__ (http://localhost/assets/js/section/caproducts.js:20:30)
ratiw commented 7 years ago

@leonfather Again, the error message is showing that you're using Vuetable-2. Please post to Vuetable-2 repo, not this one.

Try following suggestion on this.