Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Upgrade to Webpack's loader-utils v1.0.0 #155

Merged
merged 1 commit into from Feb 22, 2017
Merged

Upgrade to Webpack's loader-utils v1.0.0 #155

merged 1 commit into from Feb 22, 2017

Conversation

fed
Copy link
Contributor

@fed fed commented Feb 21, 2017

Hi! I started getting this deprecation warning yesterday after updating to the latest version of Webpack:

(node:990) 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/fknussel/workspace/x/node_modules/loader-utils/index.js:78:3)
    at Object.module.exports (/Users/fknussel/workspace/x/node_modules/eslint-loader/index.js:150:17)
    at LOADER_EXECUTION (/Users/fknussel/workspace/x/node_modules/loader-runner/lib/LoaderRunner.js:119:14)
    at runSyncOrAsync (/Users/fknussel/workspace/x/node_modules/loader-runner/lib/LoaderRunner.js:120:4)
    at iterateNormalLoaders (/Users/fknussel/workspace/x/node_modules/loader-runner/lib/LoaderRunner.js:229:2)
    at Array.<anonymous> (/Users/fknussel/workspace/x/node_modules/loader-runner/lib/LoaderRunner.js:202:4)
    at Storage.finished (/Users/fknussel/workspace/x/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:38:15)
    at /Users/fknussel/workspace/x/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:69:9
    at /Users/fknussel/workspace/x/node_modules/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:416:3)

I've set the process.traceDeprecation flag to true on my Webpack config file to find out which loader was causing the deprecation warning. As noted on the warning, this is related to this other issue on webpack's loader-utils.

This PR updates loader-utils to its latest version and therefore removes the deprecation warning.

Copy link
Contributor

@MoOx MoOx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@MoOx MoOx merged commit 82fae05 into webpack-contrib:master Feb 22, 2017
@MoOx
Copy link
Contributor

MoOx commented Feb 22, 2017

Released in 1.6.2

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

Successfully merging this pull request may close these issues.

None yet

2 participants