DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.

webpack打包又出現問題,單純看提示訊息又不知道是哪個套件造成chunk的問題,

DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead. 閱讀全文〈DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.〉

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

做webpack打包時看見此錯誤訊息,也不知道是哪裡出問題,

(node:36968) 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. 閱讀全文〈parseQuery() will be replaced with getOptions() in the next major version of loader-utils〉