Skip to content

将egg-webpack升级到5.0.1后出现如下报错 #30

@miaolin1993

Description

@miaolin1993

报错信息
`
context.logger = context.compiler.getInfrastructureLogger('webpack-dev-middleware');

^
TypeError: context.compiler.getInfrastructureLogger is not a function
`

相关的依赖版本
`
"egg-bin": "^4.11.0",

"egg-ci": "^1.8.0",

"egg-mock": "^5.9.1",

"egg-ts-helper": "^1.25.9",

"egg-view-react-ssr": "^3.1.0",

"egg-webpack": "^5.0.1",

"egg-webpack-react": "^3.0.0",

"webpack-cli": "^5.0.1"

`

目前还没有找到原因为什么报这个错误

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions