<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
bug</p>


<p dir="auto"><strong>What is the current behavior?</strong><br>
Webpack is a dependency on <a href="https://github.com/AngularClass/angular2-webpack-starter">this Angular project</a>, and when I attempt to run the project on Windows 7 (this is important as it seems to be a problem on Windows 7 only!), I get the following error message. As it turns out, it is an error in Webpack:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.context: The provided value &quot;c:\\web-my\\insurance&quot; is not an absolute path!
 - configuration.output.path: The provided value &quot;c:\\web-my\\insurance\\dist&quot; is not an absolute path!"><pre class="notranslate"><code class="notranslate">Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.context: The provided value "c:\\web-my\\insurance" is not an absolute path!
 - configuration.output.path: The provided value "c:\\web-my\\insurance\\dist" is not an absolute path!
</code></pre></div>
<p dir="auto">I fixed it quickly by modifying line 20 in schemas\ajv.absolutePath.js from:<br>
<code class="notranslate">const passes = expected === /^(?:[A-Z]:\\|\/)/.test(data);</code><br>
to:<br>
<code class="notranslate">const passes = expected === /^(?:[A-Za-z]:\\|\/)/.test(data);</code><br>
I am not sure if this is the best solution, though.</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
Checkout the angular project at <a href="https://github.com/AngularClass/angular2-webpack-starter">https://github.com/AngularClass/angular2-webpack-starter</a> and attempt to run in on Windows 7. Then see your console.</p>



<p dir="auto"><strong>What is the expected behavior?</strong><br>
No errors. The paths should work, even on Windows 7.</p>
<p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong><br>
N/A<br>
<strong>Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.</strong><br>
The error occurs on Windows 7 (this is probably the key information), node v6.9.2, npm v4.0.5, webpack 2.3.1.</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
Bug</p>


<p dir="auto"><strong>What is the current behavior?</strong><br>
Webpack fails with error on any path, e.g.:<br>
configuration.context: The provided value “d:\projects\project\src” is not an absolute path!</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
Windows 10<br>
Git Bash<br>
Node v6.9.1<br>
npm v4.0.0</p>
<p dir="auto">Create a webpack project and specify a context path, e.g. <code class="notranslate">context: path.resolve(__dirname, 'src')</code></p>
<p dir="auto">run webpack with the specified config.</p>



<p dir="auto"><strong>What is the expected behavior?</strong><br>
Webpack uses the path as specified.</p>
<p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.</strong><br>
Windows 10<br>
Git Bash<br>
Node v6.9.1<br>
npm v4.0.0</p>