Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loaderUtils.getOptions is not a function #201

Closed
jiakaiqiang opened this issue Dec 8, 2021 · 1 comment
Closed

loaderUtils.getOptions is not a function #201

jiakaiqiang opened this issue Dec 8, 2021 · 1 comment

Comments

@jiakaiqiang
Copy link

I try to use the latest version of loader uitls to write a loader, but GETOPTION () is not a function. In addition, getloaderconfig () also shows that it is not a function. Try switching to version 1.2.3 to get it. How to solve the problem of the latest version? You can use this project **https://github.com/zyqq/make-loade**r Modify the version of loader uitls to the latest version,thank you

@alexander-akait
Copy link
Member

It is breaking change, you need webpack v5 to use this.getOptions, getOptions was removed, if you need webpack v4 support please use v2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants