Reactgo: Webpack loader issue - DeprecationWarning: loaderUtils.parseQuery()

Created on 26 Mar 2017  路  6Comments  路  Source: reactGo/reactGo

When running the project i see the following warning:

(node:19056) 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.

I've tried to add process.traceDeprecation = true to various places but for some reason it doesnt show which loader causes this issue.

Anyone knows how to fix this?

Most helpful comment

So, i've looked at this a bit further.
Seems to be happening on babel-loader plugin
It is fixed on version 7 that's on beta there.

So nothing much that we can do here other than wait =]

All 6 comments

One of loaders must be using parseQuery instead of getOptions but I searched all loaders(postcss, babel, style, json, css, url, file) I could not find parseQuery. That's very weird.

If i search for ./parseQuery in all node_modules the almost all loaders have a require to this. But i'm not sure if this is it - cause its in all loaders

So, i've looked at this a bit further.
Seems to be happening on babel-loader plugin
It is fixed on version 7 that's on beta there.

So nothing much that we can do here other than wait =]

That's been bugging me too, thanks for diggin @slavab89

So... getting back to this. Just after 2 days since i've close this issue. They've released version 7 of babel-loader.

I've updated to the latest version of all loaders and dont see this happen anymore

@slavab89 I did the same thing and it fixed the issue thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kenjim83 picture kenjim83  路  8Comments

choonkending picture choonkending  路  4Comments

davidychow87 picture davidychow87  路  4Comments

choonkending picture choonkending  路  8Comments

jrodl3r picture jrodl3r  路  6Comments