Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

loaderUtils.parseQuery() is deprecated #57

Closed
eXaminator opened this issue May 23, 2017 · 2 comments
Closed

loaderUtils.parseQuery() is deprecated #57

eXaminator opened this issue May 23, 2017 · 2 comments

Comments

@eXaminator
Copy link

We started using this loader a few days back and now receive a deprecation warning every time we run our tests. Here is the full waring plus the matching stacktrace:

(node:1873) 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/sweingaertner/Sites/standard/standard/vendor/ofcs/ofcs/node_modules/loader-utils/index.js:78:3)
    at Object.module.exports (/Users/sweingaertner/Sites/standard/standard/vendor/ofcs/ofcs/node_modules/istanbul-instrumenter-loader/index.js:15:35)
    at LOADER_EXECUTION (/Users/sweingaertner/Sites/standard/standard/vendor/ofcs/ofcs/node_modules/loader-runner/lib/LoaderRunner.js:119:14)
    at runSyncOrAsync (/Users/sweingaertner/Sites/standard/standard/vendor/ofcs/ofcs/node_modules/loader-runner/lib/LoaderRunner.js:120:4)
    at iterateNormalLoaders (/Users/sweingaertner/Sites/standard/standard/vendor/ofcs/ofcs/node_modules/loader-runner/lib/LoaderRunner.js:229:2)
    at iterateNormalLoaders (/Users/sweingaertner/Sites/standard/standard/vendor/ofcs/ofcs/node_modules/loader-runner/lib/LoaderRunner.js:218:10)
    at /Users/sweingaertner/Sites/standard/standard/vendor/ofcs/ofcs/node_modules/loader-runner/lib/LoaderRunner.js:233:3
    at context.callback (/Users/sweingaertner/Sites/standard/standard/vendor/ofcs/ofcs/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /Users/sweingaertner/Sites/standard/standard/vendor/ofcs/ofcs/node_modules/babel-loader/lib/index.js:159:14
    at /Users/sweingaertner/Sites/standard/standard/vendor/ofcs/ofcs/node_modules/babel-loader/lib/fs-cache.js:113:24
    at /Users/sweingaertner/Sites/standard/standard/vendor/ofcs/ofcs/node_modules/babel-loader/lib/fs-cache.js:44:14
    at Gunzip.onEnd (zlib.js:213:5)
    at emitNone (events.js:91:20)
    at Gunzip.emit (events.js:188:7)
    at endReadableNT (_stream_readable.js:975:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
@thetric
Copy link

thetric commented May 27, 2017

This should be addressed in #51

@michael-ciniawsky
Copy link
Member

Fixed by #61

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

No branches or pull requests

3 participants