addyosmani / addyosmani/webpack-lighthouse-plugin

TypeError: Cannot read property 'afterEmit' of undefined

オープン
#18 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
294
フォーク
12
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。