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

Resolve Webpack deprecation warning for loaderUtils.parseQuery() #1387

Closed
adamsoffer opened this issue Mar 12, 2017 · 7 comments · May be fixed by phocks/next.js#1, donavon/next.js#4, NOUIY/next.js#113 or tcotidiane33/next.js#5

Comments

@adamsoffer
Copy link
Contributor

Seeing the following deprecation warning after updating to the latest version of Next beta. Can anyone else confirm?

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.
@arunoda
Copy link
Contributor

arunoda commented Mar 12, 2017

We fixed it. I hope it's coming from a other plugin using it.
Need to investigate.

@arunoda arunoda added the good first issue Easy to fix issues, good for newcomers label Mar 12, 2017
@Mcebrera
Copy link

@arunoda noob here, what is the fix exactly? Can you link me to it?

@aranajhonny
Copy link
Contributor

@arunoda The error comes from [email protected] #391. Already corrected but are still in alpha v7.0.0-alpha.1

@arunoda
Copy link
Contributor

arunoda commented Mar 13, 2017

Thanks @aranajhonny .
Frankly, there's nothing we can about this until babel released v7.0.0
(But anyway, it's just a warning)

@arunoda arunoda added Priority: Low and removed good first issue Easy to fix issues, good for newcomers labels Mar 13, 2017
@aranajhonny
Copy link
Contributor

aranajhonny commented Mar 13, 2017

Ok. Even though I install this version, and it still shows me the same warning. we will wait.

@trevordmiller
Copy link
Contributor

trevordmiller commented Mar 31, 2017

I just upgraded to next.js 2 official and am still getting this warning:

image

I tried wiping and reinstalling node_modules, but no luck.

I am using yarn instead of npm if that matters.

@arunoda
Copy link
Contributor

arunoda commented Mar 31, 2017

@trevordmiller this is not an error.
It's a warning emit by babel-loader.

It's fixed with babel-loader 7. But we can't use that because still it's beta.

See this comment: #1387 (comment)

@lock lock bot locked as resolved and limited conversation to collaborators May 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.