<h1 dir="auto">Bug report</h1>




<p dir="auto"><strong>What is the current behavior?</strong><br>
<code class="notranslate">"build": "NODE_ENV=production webpack -p --config webpack.config.prod.js"</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="vendors~app.1119d1fb9353e3bd9353.js:77 Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&amp;args[]=undefined&amp;args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at xu (vendors~app.1119d1fb9353e3bd9353.js:77)
    at d (vendors~app.1119d1fb9353e3bd9353.js:77)
    at v (vendors~app.1119d1fb9353e3bd9353.js:77)
    at vendors~app.1119d1fb9353e3bd9353.js:77
    at ji (vendors~app.1119d1fb9353e3bd9353.js:77)
    at mc (vendors~app.1119d1fb9353e3bd9353.js:77)
    at lu (vendors~app.1119d1fb9353e3bd9353.js:77)
    at cu (vendors~app.1119d1fb9353e3bd9353.js:77)
    at Zc (vendors~app.1119d1fb9353e3bd9353.js:77)
    at vendors~app.1119d1fb9353e3bd9353.js:77"><pre class="notranslate"><code class="notranslate">vendors~app.1119d1fb9353e3bd9353.js:77 Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&amp;args[]=undefined&amp;args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at xu (vendors~app.1119d1fb9353e3bd9353.js:77)
    at d (vendors~app.1119d1fb9353e3bd9353.js:77)
    at v (vendors~app.1119d1fb9353e3bd9353.js:77)
    at vendors~app.1119d1fb9353e3bd9353.js:77
    at ji (vendors~app.1119d1fb9353e3bd9353.js:77)
    at mc (vendors~app.1119d1fb9353e3bd9353.js:77)
    at lu (vendors~app.1119d1fb9353e3bd9353.js:77)
    at cu (vendors~app.1119d1fb9353e3bd9353.js:77)
    at Zc (vendors~app.1119d1fb9353e3bd9353.js:77)
    at vendors~app.1119d1fb9353e3bd9353.js:77
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/44250267/88613214-90822280-d0bf-11ea-88dd-461a505b919d.png"><img src="https://user-images.githubusercontent.com/44250267/88613214-90822280-d0bf-11ea-88dd-461a505b919d.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Trying with -d option its working fine.<br>
"build": "NODE_ENV=development webpack -d --config webpack.config.prod.js"</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<ul dir="auto">
<li>Create a react project with antd v4.0.0 and use the form components with the syntax getFieldDecorator().</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="            &lt;FormItem label=&quot;Type&quot; labelCol={{ span: 7 }} wrapperCol={{ span: 17 }}&gt;
              {getFieldDecorator('type', {
                initialValue: 'DYNAMIC',
                rules: [
                  {
                    required: true,
                    message: 'Please select type!',
                  },
                ],ﬁ
              })(
                &lt;RadioGroup&gt;
                  &lt;RadioButton value=&quot;DYNAMIC&quot;&gt;Dynamic&lt;/RadioButton&gt;
                  &lt;RadioButton value=&quot;STATIC&quot;&gt;Static&lt;/RadioButton&gt;
                &lt;/RadioGroup&gt;,
              )}
            &lt;/FormItem&gt;"><pre class="notranslate"><code class="notranslate">            &lt;FormItem label="Type" labelCol={{ span: 7 }} wrapperCol={{ span: 17 }}&gt;
              {getFieldDecorator('type', {
                initialValue: 'DYNAMIC',
                rules: [
                  {
                    required: true,
                    message: 'Please select type!',
                  },
                ],ﬁ
              })(
                &lt;RadioGroup&gt;
                  &lt;RadioButton value="DYNAMIC"&gt;Dynamic&lt;/RadioButton&gt;
                  &lt;RadioButton value="STATIC"&gt;Static&lt;/RadioButton&gt;
                &lt;/RadioGroup&gt;,
              )}
            &lt;/FormItem&gt;
</code></pre></div>
<ul dir="auto">
<li>Adding -p option to build the react project.<br>
reproduce test repo - <a href="https://github.com/liho98/webpack-4.44.0-bug">https://github.com/liho98/webpack-4.44.0-bug</a></li>
</ul>






<p dir="auto"><strong>What is the expected behavior?</strong><br>
It should be working fine as webpack version v4.43.0.</p>


<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version:  v4.44.0<br>
Node.js version: v12.16.1<br>
Operating System: macOS Catalina 10.15.4<br>
Additional tools: Antd v4.0.0</p>
<p dir="auto">We are running a fairly large project with 922 JavaScript and .less files being watched by Webpack's watch function on OS X (10.10.2) running on Node.js 5.2.0. During the initial build, or right when it's done with that, the following happens:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2015-12-10 18:01 node[76106] (FSEvents.framework) FSEventStreamScheduleWithRunLoop: failed to create the cffd
2015-12-10 18:01 node[76106] (FSEvents.framework) FSEventStreamCreate: _FSEventStreamCreate: ERROR: could not open kqueue
2015-12-10 18:01 node[76106] (FSEvents.framework) FSEventStreamScheduleWithRunLoop(): failed assertion 'streamRef != NULL'

2015-12-10 18:01 node[76106] (FSEvents.framework) FSEventStreamStart(): failed assertion 'streamRef != NULL'

2015-12-10 18:01 node[76106] (FSEvents.framework) FSEventStreamStop(): failed assertion 'streamRef != NULL'

2015-12-10 18:01 node[76106] (FSEvents.framework) FSEventStreamUnscheduleFromRunLoop(): failed assertion 'streamRef != NULL'

2015-12-10 18:01 node[76106] (FSEvents.framework) FSEventStreamInvalidate(): failed assertion 'streamRef != NULL'

2015-12-10 18:01 node[76106] (FSEvents.framework) FSEventStreamRelease(): failed assertion 'streamRef != NULL'"><pre class="notranslate"><code class="notranslate">2015-12-10 18:01 node[76106] (FSEvents.framework) FSEventStreamScheduleWithRunLoop: failed to create the cffd
2015-12-10 18:01 node[76106] (FSEvents.framework) FSEventStreamCreate: _FSEventStreamCreate: ERROR: could not open kqueue
2015-12-10 18:01 node[76106] (FSEvents.framework) FSEventStreamScheduleWithRunLoop(): failed assertion 'streamRef != NULL'

2015-12-10 18:01 node[76106] (FSEvents.framework) FSEventStreamStart(): failed assertion 'streamRef != NULL'

2015-12-10 18:01 node[76106] (FSEvents.framework) FSEventStreamStop(): failed assertion 'streamRef != NULL'

2015-12-10 18:01 node[76106] (FSEvents.framework) FSEventStreamUnscheduleFromRunLoop(): failed assertion 'streamRef != NULL'

2015-12-10 18:01 node[76106] (FSEvents.framework) FSEventStreamInvalidate(): failed assertion 'streamRef != NULL'

2015-12-10 18:01 node[76106] (FSEvents.framework) FSEventStreamRelease(): failed assertion 'streamRef != NULL'
</code></pre></div>
<p dir="auto">I've made an issue about this at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="121436324" data-permission-text="Title is private" data-url="https://github.com/libuv/libuv/issues/645" data-hovercard-type="issue" data-hovercard-url="/libuv/libuv/issues/645/hovercard" href="https://github.com/libuv/libuv/issues/645">libuv/libuv#645</a>, but I was wondering if this is something other Webpack users have also suffered from and if a workaround is known. Thanks.</p>