addyosmani / addyosmani/webpack-lighthouse-plugin

TypeError: Cannot read property 'afterEmit' of undefined

未關閉
#18 1 則留言 0 個 reaction 已指派 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 摘要。