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.parseQuery is deprecated #7

Closed
Tiagojdferreira opened this issue Mar 3, 2017 · 1 comment
Closed

loaderUtils.parseQuery is deprecated #7

Tiagojdferreira opened this issue Mar 3, 2017 · 1 comment
Assignees

Comments

@Tiagojdferreira
Copy link
Contributor

Tiagojdferreira commented Mar 3, 2017

When running a webpack build, webpack throws the following warning:

DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
  at Object.parseQuery (/var/www/prod/node_modules/loader-utils/index.js:78:3)

As stated in the warning, you can get more info in the loader-utils issue 56, but the basic idea is that you should replace loaderUtils.parseQuery in here with:

  • getOptions - the only way to get the loader options. It will look like this:
@pierreant-p
Copy link
Owner

@Tiagojdferreira feel free to open a pull request !

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

No branches or pull requests

2 participants