Kibana plugin errors

Hello

I have created a simple kibana plugin and when I try to start kibana with the plugin i get the following error -

   ERROR in /home/abhishek/my-kibana-plugin/public/hack.js
   Module not found: Error: Cannot resolve module 'rjs-repack-loader' in /home/abhishek/my-kibana-plugin/public
    @ /home/abhishek/my-kibana-plugin/public/hack.js 7:14-34

   ERROR in /home/abhishek/my-kibana-plugin/public/hack.js
   Module not found: Error: Cannot resolve module 'rjs-repack-loader' in /home/abhishek/my-kibana-plugin/public
    @ /home/abhishek/my-kibana-plugin/public/hack.js 11:15-36

   ERROR in /home/abhishek/my-kibana-plugin/public/hack.js
   Module not found: Error: Cannot resolve module 'babel-loader' in /home/abhishek/my-kibana-plugin/public
    @ /home/abhishek/my-kibana-plugin/public/hack.js 27:0-41

   ERROR in /home/abhishek/my-kibana-plugin/public/hack.js
   Module not found: Error: Cannot resolve module 'babel-loader' in /home/abhishek/my-kibana-plugin/public
    @ /home/abhishek/my-kibana-plugin/public/hack.js 29:16-40

   ERROR in /home/abhishek/my-kibana-plugin/public/hack.js
   Module not found: Error: Cannot resolve module 'raw-loader' in /home/abhishek/my-kibana-plugin/public
    @ /home/abhishek/my-kibana-plugin/public/hack.js 17:13-46

   ERROR in /home/abhishek/my-kibana-plugin/public/hack.js
   Module not found: Error: Cannot resolve module 'css-loader' in /home/abhishek/my-kibana-plugin/public
    @ /home/abhishek/my-kibana-plugin/public/hack.js 23:0-42

   ERROR in /home/abhishek/my-kibana-plugin/public/hack.js
   Module not found: Error: Cannot resolve module 'css-loader' in /home/abhishek/my-kibana-plugin/public
    @ /home/abhishek/my-kibana-plugin/public/hack.js 33:0-32

   ERROR in /home/abhishek/my-kibana-plugin/public/hack.js
   Module not found: Error: Cannot resolve module 'rjs-repack-loader' in /home/abhishek/my-kibana-plugin/public
    @ /home/abhishek/my-kibana-plugin/public/hack.js 13:14-34

   ERROR in /home/abhishek/my-kibana-plugin/public/hack.js
   Module not found: Error: Cannot resolve module 'css-loader' in /home/abhishek/my-kibana-plugin/public
    @ /home/abhishek/my-kibana-plugin/public/hack.js 21:0-40

   ERROR in /home/abhishek/my-kibana-plugin/public/hack.js
   Module not found: Error: Cannot resolve module 'babel-loader' in /home/abhishek/my-kibana-plugin/public
    @ /home/abhishek/my-kibana-plugin/public/hack.js 25:0-39

    at FsOptimizer.failedStatsToError (/home/abhishek/kibana/src/optimize/base_optimizer.js:233:27)
   at /home/abhishek/kibana/src/optimize/fs_optimizer.js:33:30
   at Compiler.<anonymous> (/home/abhishek/kibana/node_modules/webpack/lib/Compiler.js:181:13)
   at /home/abhishek/kibana/node_modules/webpack/lib/Compiler.js:403:12
   at Compiler.next (/home/abhishek/kibana/node_modules/tapable/lib/Tapable.js:67:11)
   at Compiler.<anonymous> (/home/abhishek/kibana/node_modules/webpack/lib/CachePlugin.js:40:4)
   at Compiler.applyPluginsAsync (/home/abhishek/kibana/node_modules/tapable/lib/Tapable.js:71:13)
   at Compiler.<anonymous> (/home/abhishek/kibana/node_modules/webpack/lib/Compiler.js:400:9)
   at Compilation.<anonymous> (/home/abhishek/kibana/node_modules/webpack/lib/Compilation.js:577:13)
   at Compilation.applyPluginsAsync (/home/abhishek/kibana/node_modules/tapable/lib/Tapable.js:60:69)
   at Compilation.<anonymous> (/home/abhishek/kibana/node_modules/webpack/lib/Compilation.js:572:10)
   at Compilation.next (/home/abhishek/kibana/node_modules/tapable/lib/Tapable.js:67:11)
   at Compilation.<anonymous> (/home/abhishek/kibana/node_modules/webpack/lib/optimize/UglifyJsPlugin.js:140:4)
   at Compilation.applyPluginsAsync (/home/abhishek/kibana/node_modules/tapable/lib/Tapable.js:71:13)
   at Compilation.<anonymous> (/home/abhishek/kibana/node_modules/webpack/lib/Compilation.js:567:9)
   at Compilation.next (/home/abhishek/kibana/node_modules/tapable/lib/Tapable.js:67:11)
 data: { errors: [Object], warnings: [], publicPath: '/bundles/' },

kibana version v5.6.4

would appreciate any help to resolve this.

Thank you in advance!

It seems you are missing some node-module dependencies, npm install can help there. Can you upgrade to a later version of Kibana? The documentation around development has improved, this is the latest https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md