<?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>config | SDT 攻城獅區</title>
	<atom:link href="https://sdt.hameba.tw/tag/config/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>config | SDT 攻城獅區</title>
	<link>https://sdt.hameba.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.</title>
		<link>https://sdt.hameba.tw/612/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=deprecationwarning-chunk-modules-is-deprecated-use-chunk-getnumberofmodules-mapmodules-foreachmodule-containsmodule-instead</link>
				<comments>https://sdt.hameba.tw/612/#respond</comments>
				<pubDate>Sat, 29 Feb 2020 01:10:49 +0000</pubDate>
		<dc:creator><![CDATA[Hsu Steven]]></dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[extract-text-webpack-plugin]]></category>
		<category><![CDATA[mini-css-extract-plugin]]></category>
		<category><![CDATA[WebPack]]></category>

		<guid isPermaLink="false">https://sdt.hameba.tw/?p=612</guid>
				<description><![CDATA[<p>webpack打包又出現問題，單純看提示訊息又不知道是哪個套件造成chunk的問題， DeprecationW &#8230; </p>
<p class="link-more"><a href="https://sdt.hameba.tw/612/" class="more-link">閱讀全文<span class="screen-reader-text">〈DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.〉</span></a></p>
The post <a href="https://sdt.hameba.tw/612/">DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></description>
								<content:encoded><![CDATA[<p>webpack打包又出現問題，單純看提示訊息又不知道是哪個套件造成chunk的問題，</p>
<p>DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.<span id="more-612"></span></p>
<p><img class="alignnone size-large wp-image-613" src="https://sdt.hameba.tw/wp-content/uploads/2020/02/截圖-2020-02-29-上午9.07.21-1024x90.png" alt="" width="840" height="74" srcset="https://sdt.hameba.tw/wp-content/uploads/2020/02/截圖-2020-02-29-上午9.07.21-1024x90.png?v=1582938458 1024w, https://sdt.hameba.tw/wp-content/uploads/2020/02/截圖-2020-02-29-上午9.07.21-300x26.png?v=1582938458 300w, https://sdt.hameba.tw/wp-content/uploads/2020/02/截圖-2020-02-29-上午9.07.21-768x68.png?v=1582938458 768w, https://sdt.hameba.tw/wp-content/uploads/2020/02/截圖-2020-02-29-上午9.07.21-1536x135.png?v=1582938458 1536w, https://sdt.hameba.tw/wp-content/uploads/2020/02/截圖-2020-02-29-上午9.07.21-1200x106.png?v=1582938458 1200w, https://sdt.hameba.tw/wp-content/uploads/2020/02/截圖-2020-02-29-上午9.07.21.png?v=1582938458 1956w" sizes="(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px" /></p>
<p>查詢要更新哪個套件，更新node_module後即可，</p><pre class="crayon-plain-tag">$ npm install extract-text-webpack-plugin@3</pre><p>npm 上面也已經提示不推薦使用，沒有在維護了！</p>
<p><a href="https://www.npmjs.com/package/extract-text-webpack-plugin">extract-text-webpack-plugin</a></p>
<p>&#8220;建議改使用&#8221;</p>
<p><a href="https://www.npmjs.com/package/mini-css-extract-plugin">mini-css-extract-plugin</a></p>
<p>&nbsp;</p>
<p>Reference</p>
<p><a href="https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/529" target="_blank" rel="noopener noreferrer">https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/529</a></p>The post <a href="https://sdt.hameba.tw/612/">DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></content:encoded>
							<wfw:commentRss>https://sdt.hameba.tw/612/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<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>
		<item>
		<title>解決 Unable to access &#8216;git/attributes&#8217;</title>
		<link>https://sdt.hameba.tw/539/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e8%25a7%25a3%25e6%25b1%25ba-unable-to-access-git-attributes</link>
				<comments>https://sdt.hameba.tw/539/#respond</comments>
				<pubDate>Sat, 22 Feb 2020 17:18:06 +0000</pubDate>
		<dc:creator><![CDATA[Hsu Steven]]></dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">https://sdt.hameba.tw/?p=539</guid>
				<description><![CDATA[<p>在Server端部署code時git clone跑出： Unable to access &#8216;git &#8230; </p>
<p class="link-more"><a href="https://sdt.hameba.tw/539/" class="more-link">閱讀全文<span class="screen-reader-text">〈解決 Unable to access &#8216;git/attributes&#8217;〉</span></a></p>
The post <a href="https://sdt.hameba.tw/539/">解決 Unable to access ‘git/attributes’</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></description>
								<content:encoded><![CDATA[<p>在Server端部署code時git clone跑出：</p>
<p><strong>Unable to access &#8216;git/attributes&#8217;</strong><br />
<span id="more-539"></span></p>
<p>滿頭問號不知道為什麼，後來發現原因為.config檔案非當下使用者，</p><pre class="crayon-plain-tag">$ cd ~
$ ls -al

// 發現 .config 居然 user 是root....
$ sudo chown -R $(whoami) .config</pre><p>重設後，在git pull即可通過。</p>
<p>Reference</p>
<p><a href="https://stackoverflow.com/questions/27150926/unable-to-access-git-attributes" target="_blank" rel="noopener noreferrer">https://stackoverflow.com/questions/27150926/unable-to-access-git-attributes</a></p>The post <a href="https://sdt.hameba.tw/539/">解決 Unable to access ‘git/attributes’</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></content:encoded>
							<wfw:commentRss>https://sdt.hameba.tw/539/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
	</channel>
</rss>
