Question: I am using webpack to include [mdbootstrap](https://mdbootstrap.com/)

This is how I am including it in my Project:

```
require('mdbootstrap/css/mdb.min.css');
require('mdbootstrap/js/mdb.min.js');    

```

I tried `require('mdbootstrap')` also, but in both the cases I am getting the following error:

```
vendor.js:71728 Uncaught ReferenceError: Waves is not defined
at Object.<anonymous> (vendor.js:71728)
at Object.<anonymous> (vendor.js:71729)
at __webpack_require__ (vendor.js:20)
at Object._require.modules (vendor.js:68202)
at __webpack_require__ (vendor.js:20)
at Object.defineProperty.value (vendor.js:68186)
at __webpack_require__ (vendor.js:20)
at Object.defineProperty.value (vendor.js:63)
at vendor.js:66

```

Using `require('mdbootstrap/css/mdb.min.css');` alone works, but I need a js file too.

Answer: 
i worked with:

cmd: `npm install node-waves`

main.js File

```
var waves = required('node-waves')
window.Waves = waves 

```
In case you are using **Vue**, this is the solution that worked for me:

**Install node-waves**:

```
npm install node-waves --save

```

**Declare it in webpack** (in both webpack.dev.conf.js and webpack.prod.conf.js):

```
new webpack.ProvidePlugin({
  'Waves': 'node-waves'
}),

```