Babel-loader: parseQuery() will be replaced with getOptions() in the next major version of loader-utils

Created on 23 Feb 2017  路  4Comments  路  Source: babel/babel-loader

I'm submitting a feature request

Webpack Version:
2.2.1

Babel Core Version:
6.5.2

Babel Loader Version:
6.3.2

Please tell us about your environment:
OSX 10.11.6

Most helpful comment

The deprecation warning is now fixed in v7.0.0

All 4 comments

The deprecation warning is now fixed in v7.0.0

@danez I still get the warning with "babel-loader": "v7.0.0-alpha.2".
Are you sure this is closed?

(node:51116) 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 (/Users/damiano/Desktop/quant01/node_modules/loader-utils/index.js:78:3)
    at Object.module.exports (/Users/damiano/Desktop/quant01/node_modules/file-loader/index.js:11:26)
    at Object.module.exports (/Users/damiano/Desktop/quant01/node_modules/url-loader/index.js:19:21)
    at LOADER_EXECUTION (/Users/damiano/Desktop/quant01/node_modules/loader-runner/lib/LoaderRunner.js:119:14)
    at runSyncOrAsync (/Users/damiano/Desktop/quant01/node_modules/loader-runner/lib/LoaderRunner.js:120:4)
    at iterateNormalLoaders (/Users/damiano/Desktop/quant01/node_modules/loader-runner/lib/LoaderRunner.js:229:2)
    at /Users/damiano/Desktop/quant01/node_modules/loader-runner/lib/LoaderRunner.js:202:4
    at /Users/damiano/Desktop/quant01/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:62:14
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)

Look at the stack-trace, the warning you are seeing is coming from the file-loader or url-loader.

Btw you can also use the final 7.0.0 version now.

Was this page helpful?
0 / 5 - 0 ratings