<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>babel-loader | SDT 攻城獅區</title>
	<atom:link href="https://sdt.hameba.tw/tag/babel-loader/feed/" rel="self" type="application/rss+xml" />
	<link>https://sdt.hameba.tw</link>
	<description>由Steven, Der, Ted 三位高級打字員所組成，是三位工程師(攻城獅)所維護的技術分享平台，或許偶爾會分享一些日常，有任何問題或是錯誤的部分，歡迎留言告訴我們！</description>
	<lastBuildDate>Sat, 29 Feb 2020 08:18:21 +0800</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.3</generator>

<image>
	<url>https://sdt.hameba.tw/wp-content/uploads/2020/02/hameba_favicon-150x150.png</url>
	<title>babel-loader | SDT 攻城獅區</title>
	<link>https://sdt.hameba.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>parseQuery() will be replaced with getOptions() in the next major version of loader-utils</title>
		<link>https://sdt.hameba.tw/609/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=parsequery-will-be-replaced-with-getoptions-in-the-next-major-version-of-loader-utils</link>
				<comments>https://sdt.hameba.tw/609/#respond</comments>
				<pubDate>Sat, 29 Feb 2020 01:04:41 +0000</pubDate>
		<dc:creator><![CDATA[Hsu Steven]]></dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[babel-loader]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[WebPack]]></category>

		<guid isPermaLink="false">https://sdt.hameba.tw/?p=609</guid>
				<description><![CDATA[<p>做webpack打包時看見此錯誤訊息，也不知道是哪裡出問題， (node:36968) Deprecation &#8230; </p>
<p class="link-more"><a href="https://sdt.hameba.tw/609/" class="more-link">閱讀全文<span class="screen-reader-text">〈parseQuery() will be replaced with getOptions() in the next major version of loader-utils〉</span></a></p>
The post <a href="https://sdt.hameba.tw/609/">parseQuery() will be replaced with getOptions() in the next major version of loader-utils</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></description>
								<content:encoded><![CDATA[<p>做webpack打包時看見此錯誤訊息，也不知道是哪裡出問題，</p>
<p>(node:36968) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56<br />
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.<span id="more-609"></span></p>
<p><img class="alignnone size-large wp-image-610" src="https://sdt.hameba.tw/wp-content/uploads/2020/02/截圖-2020-02-29-上午8.57.45-1024x84.png" alt="" width="840" height="69" srcset="https://sdt.hameba.tw/wp-content/uploads/2020/02/截圖-2020-02-29-上午8.57.45-1024x84.png?v=1582937889 1024w, https://sdt.hameba.tw/wp-content/uploads/2020/02/截圖-2020-02-29-上午8.57.45-300x25.png?v=1582937889 300w, https://sdt.hameba.tw/wp-content/uploads/2020/02/截圖-2020-02-29-上午8.57.45-768x63.png?v=1582937889 768w, https://sdt.hameba.tw/wp-content/uploads/2020/02/截圖-2020-02-29-上午8.57.45-1536x125.png?v=1582937889 1536w, https://sdt.hameba.tw/wp-content/uploads/2020/02/截圖-2020-02-29-上午8.57.45-2048x167.png?v=1582937889 2048w, https://sdt.hameba.tw/wp-content/uploads/2020/02/截圖-2020-02-29-上午8.57.45-1200x98.png?v=1582937889 1200w" sizes="(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px" /></p>
<p>並非webpack prod錯誤，而是套件太舊，查一下package.json以為是loader.utils.</p>
<p>結果node_module沒有這套件上查了，是<span style="color: #ff0000">babel-loader</span>這套件。</p>
<p>跳出這錯誤是我用6.x.x版本，直接升級上去會到8.x.x版本，又會跳出babel-core的問題，</p>
<p>所以我改成指定 7.x.x版本</p><pre class="crayon-plain-tag">$ npm install babel-loader@7</pre><p>&nbsp;</p>
<p>Reference</p>
<p><a href="https://github.com/babel/babel-loader/issues/392" target="_blank" rel="noopener noreferrer">https://github.com/babel/babel-loader/issues/392</a></p>The post <a href="https://sdt.hameba.tw/609/">parseQuery() will be replaced with getOptions() in the next major version of loader-utils</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></content:encoded>
							<wfw:commentRss>https://sdt.hameba.tw/609/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
	</channel>
</rss>
