addyosmani / addyosmani/webpack-lighthouse-plugin

TypeError: Cannot read property 'afterEmit' of undefined

Aperta
#18 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
294
Fork
12
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

After installing the plugin via yarn, and importing it into my `development.js` config, I get this error `TypeError: Cannot read property 'afterEmit' of undefined` when I run `webpack-dev-server --hot`

I am using this plugin in a rails app using webpacker.

My webpacker version: "@rails/webpacker": "^3.5.3"

And here's my `development.js` config

```
process.env.NODE_ENV = process.env.NODE_ENV || 'development'

const environment = require('./environment')
const WebpackLighthousePlugin = require('webpack-lighthouse-plugin')

environment.plugins.append(
'WebpackLighthousePlugin',
new WebpackLighthousePlugin({
url: 'http://localhost:3000'
})
)

module.exports = environment.toWebpackConfig()
```

Do I need to upgrade webpacker? Saw a similar issue over [here](https://github.com/MikaAK/s3-plugin-webpack/issues/105) for another plugin

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.