Skip to content

Limit webpack version in peerDependencies #1323

@afdev82

Description

@afdev82

I think that the webpack version in the peerDependencies section of package.json should be restricted to only v5, since from v9 ts-loader is not compatible anymore with webpack v4.

"webpack": "*"

Or am I wrong?
I tried to update ts-loader while still using webpack v4 and yarn didn't complain, but I got the error in the console:

Module build failed: TypeError: loaderUtils.getOptions is not a function

And found the explanation in this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions