<p dir="auto">Reopens <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="260637383" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/2993" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/2993/hovercard" href="https://github.com/vercel/next.js/issues/2993">#2993</a>. There was no reason given why they are pinned to patch versions.</p>
<h1 dir="auto">Feature request</h1>
<ul dir="auto">
<li>loosen dependency version restrictions</li>
</ul>
<h2 dir="auto">Is your feature request related to a problem? Please describe.</h2>
<ul dir="auto">
<li>node_modules/ bloat</li>
<li>patches and features take more time to propagate downstream</li>
</ul>
<h2 dir="auto">Describe the solution you'd like</h2>
<ul dir="auto">
<li>pin to major version (i.e. <code class="notranslate">^</code>)</li>
</ul>
<h2 dir="auto">Describe alternatives you've considered</h2>
<ul dir="auto">
<li>pin to minor version (i.e. <code class="notranslate">~</code>)</li>
</ul>
<h2 dir="auto">Additional context</h2>
<p dir="auto"><code class="notranslate">yarn check</code> report concerning <code class="notranslate">next</code>. This is run in a monorepo for a component library that uses next for documentation.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="warning &quot;next#@babel/plugin-proposal-class-properties#@babel/core@^7.0.0-0&quot; could be deduped from &quot;7.2.2&quot; to &quot;@babel/core@7.2.2&quot;
warning &quot;next#@babel/plugin-proposal-object-rest-spread#@babel/core@^7.0.0-0&quot; could be deduped from &quot;7.2.2&quot; to &quot;@babel/core@7.2.2&quot;
warning &quot;next#@babel/plugin-syntax-dynamic-import#@babel/core@^7.0.0-0&quot; could be deduped from &quot;7.2.2&quot; to &quot;@babel/core@7.2.2&quot;
warning &quot;next#@babel/plugin-transform-modules-commonjs#@babel/core@^7.0.0-0&quot; could be deduped from &quot;7.2.2&quot; to &quot;@babel/core@7.2.2&quot;
warning &quot;next#@babel/plugin-transform-runtime#@babel/core@^7.0.0-0&quot; could be deduped from &quot;7.2.2&quot; to &quot;@babel/core@7.2.2&quot;
warning &quot;next#@babel/preset-env#@babel/core@^7.0.0-0&quot; could be deduped from &quot;7.2.2&quot; to &quot;@babel/core@7.2.2&quot;
warning &quot;next#autodll-webpack-plugin#webpack@^2.0.0 || ^3.0.0 || ^4.0.0&quot; could be deduped from &quot;4.29.3&quot; to &quot;webpack@4.29.3&quot;
warning &quot;next#babel-loader#@babel/core@^7.0.0&quot; could be deduped from &quot;7.2.2&quot; to &quot;@babel/core@7.2.2&quot;
warning &quot;next#babel-loader#webpack@&gt;=2&quot; could be deduped from &quot;4.29.3&quot; to &quot;webpack@4.29.3&quot;
warning &quot;next#friendly-errors-webpack-plugin#webpack@^2.0.0 || ^3.0.0 || ^4.0.0&quot; could be deduped from &quot;4.29.3&quot; to &quot;webpack@4.29.3&quot;
warning &quot;next#@babel/plugin-proposal-class-properties#@babel/core@^7.0.0-0&quot; could be deduped from &quot;7.2.2&quot; to &quot;@babel/core@7.2.2&quot;
warning &quot;next#@babel/plugin-proposal-object-rest-spread#@babel/core@^7.0.0-0&quot; could be deduped from &quot;7.2.2&quot; to &quot;@babel/core@7.2.2&quot;
warning &quot;next#@babel/plugin-syntax-dynamic-import#@babel/core@^7.0.0-0&quot; could be deduped from &quot;7.2.2&quot; to &quot;@babel/core@7.2.2&quot;
warning &quot;next#@babel/plugin-transform-modules-commonjs#@babel/core@^7.0.0-0&quot; could be deduped from &quot;7.2.2&quot; to &quot;@babel/core@7.2.2&quot;
warning &quot;next#@babel/plugin-transform-runtime#@babel/core@^7.0.0-0&quot; could be deduped from &quot;7.2.2&quot; to &quot;@babel/core@7.2.2&quot;
warning &quot;next#@babel/preset-env#@babel/core@^7.0.0-0&quot; could be deduped from &quot;7.2.2&quot; to &quot;@babel/core@7.2.2&quot;
warning &quot;next#autodll-webpack-plugin#webpack@^2.0.0 || ^3.0.0 || ^4.0.0&quot; could be deduped from &quot;4.29.3&quot; to &quot;webpack@4.29.3&quot;
warning &quot;next#babel-loader#@babel/core@^7.0.0&quot; could be deduped from &quot;7.2.2&quot; to &quot;@babel/core@7.2.2&quot;
warning &quot;next#babel-loader#webpack@&gt;=2&quot; could be deduped from &quot;4.29.3&quot; to &quot;webpack@4.29.3&quot;
warning &quot;next#friendly-errors-webpack-plugin#webpack@^2.0.0 || ^3.0.0 || ^4.0.0&quot; could be deduped from &quot;4.29.3&quot; to &quot;webpack@4.29.3&quot;
warning &quot;next#webpack-dev-middleware#webpack@^4.0.0&quot; could be deduped from &quot;4.29.3&quot; to &quot;webpack@4.29.3&quot;
warning &quot;next#webpackbar#webpack@^3.0.0 || ^4.0.0&quot; could be deduped from &quot;4.29.3&quot; to &quot;webpack@4.29.3&quot;
warning &quot;next#@babel/plugin-proposal-class-properties#@babel/plugin-syntax-class-properties#@babel/core@^7.0.0-0&quot; could be deduped from &quot;7.2.2&quot; to &quot;@babel/core@7.2.2&quot;"><pre class="notranslate"><code class="notranslate">warning "next#@babel/plugin-proposal-class-properties#@babel/core@^7.0.0-0" could be deduped from "7.2.2" to "@babel/core@7.2.2"
warning "next#@babel/plugin-proposal-object-rest-spread#@babel/core@^7.0.0-0" could be deduped from "7.2.2" to "@babel/core@7.2.2"
warning "next#@babel/plugin-syntax-dynamic-import#@babel/core@^7.0.0-0" could be deduped from "7.2.2" to "@babel/core@7.2.2"
warning "next#@babel/plugin-transform-modules-commonjs#@babel/core@^7.0.0-0" could be deduped from "7.2.2" to "@babel/core@7.2.2"
warning "next#@babel/plugin-transform-runtime#@babel/core@^7.0.0-0" could be deduped from "7.2.2" to "@babel/core@7.2.2"
warning "next#@babel/preset-env#@babel/core@^7.0.0-0" could be deduped from "7.2.2" to "@babel/core@7.2.2"
warning "next#autodll-webpack-plugin#webpack@^2.0.0 || ^3.0.0 || ^4.0.0" could be deduped from "4.29.3" to "webpack@4.29.3"
warning "next#babel-loader#@babel/core@^7.0.0" could be deduped from "7.2.2" to "@babel/core@7.2.2"
warning "next#babel-loader#webpack@&gt;=2" could be deduped from "4.29.3" to "webpack@4.29.3"
warning "next#friendly-errors-webpack-plugin#webpack@^2.0.0 || ^3.0.0 || ^4.0.0" could be deduped from "4.29.3" to "webpack@4.29.3"
warning "next#@babel/plugin-proposal-class-properties#@babel/core@^7.0.0-0" could be deduped from "7.2.2" to "@babel/core@7.2.2"
warning "next#@babel/plugin-proposal-object-rest-spread#@babel/core@^7.0.0-0" could be deduped from "7.2.2" to "@babel/core@7.2.2"
warning "next#@babel/plugin-syntax-dynamic-import#@babel/core@^7.0.0-0" could be deduped from "7.2.2" to "@babel/core@7.2.2"
warning "next#@babel/plugin-transform-modules-commonjs#@babel/core@^7.0.0-0" could be deduped from "7.2.2" to "@babel/core@7.2.2"
warning "next#@babel/plugin-transform-runtime#@babel/core@^7.0.0-0" could be deduped from "7.2.2" to "@babel/core@7.2.2"
warning "next#@babel/preset-env#@babel/core@^7.0.0-0" could be deduped from "7.2.2" to "@babel/core@7.2.2"
warning "next#autodll-webpack-plugin#webpack@^2.0.0 || ^3.0.0 || ^4.0.0" could be deduped from "4.29.3" to "webpack@4.29.3"
warning "next#babel-loader#@babel/core@^7.0.0" could be deduped from "7.2.2" to "@babel/core@7.2.2"
warning "next#babel-loader#webpack@&gt;=2" could be deduped from "4.29.3" to "webpack@4.29.3"
warning "next#friendly-errors-webpack-plugin#webpack@^2.0.0 || ^3.0.0 || ^4.0.0" could be deduped from "4.29.3" to "webpack@4.29.3"
warning "next#webpack-dev-middleware#webpack@^4.0.0" could be deduped from "4.29.3" to "webpack@4.29.3"
warning "next#webpackbar#webpack@^3.0.0 || ^4.0.0" could be deduped from "4.29.3" to "webpack@4.29.3"
warning "next#@babel/plugin-proposal-class-properties#@babel/plugin-syntax-class-properties#@babel/core@^7.0.0-0" could be deduped from "7.2.2" to "@babel/core@7.2.2"
</code></pre></div>
<p dir="auto">Switching from exact version matches to major matches reduces the size of my <code class="notranslate">node_modules</code> from 837MB to 785MB. While this isn't much it is still I/O that has to run on install. Every other <code class="notranslate">next</code> version installed locally increases the overall bloat.</p>
<ul dir="auto">
<li>[x ] I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Trying to deploy with now-cli</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Deployment process end with error</p>
<blockquote>
<p dir="auto">Deploying ******</p>
<blockquote>
<p dir="auto">Using Node.js 8.9.1 (default)<br>
Ready! https://****** [4s]<br>
Initializing…<br>
Building<br>
▲ npm install<br>
✓ Using "package-lock.json"<br>
⧗ Installing 48 main dependencies…<br>
✓ Installed 1119 modules [34s]<br>
▲ npm run build</p>
<blockquote>
<p dir="auto">visual_proposal@1.0.0 build /home/nowuser/src<br>
next build<br>
Using external babel configuration<br>
Location: "/home/nowuser/src/.babelrc"<br>
Using "webpack" config function defined in next.config.js.<br>
npm ERR! code ELIFECYCLE<br>
npm ERR! errno 137<br>
npm ERR! visual_proposal@1.0.0 build: <code class="notranslate">next build</code><br>
npm ERR! Exit status 137<br>
npm ERR!<br>
npm ERR! Failed at the visual_proposal@1.0.0 build script.<br>
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.<br>
npm ERR! A complete log of this run can be found in:<br>
npm ERR!     /home/nowuser/.npm/_logs/2017-12-06T08_26_26_403Z-debug.log</p>
</blockquote>
</blockquote>
</blockquote>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>clone repo <a href="https://github.com/psycura/VisualProposal">https://github.com/psycura/VisualProposal</a></li>
<li>try to deploy to now</li>
</ol>
<h2 dir="auto">Your Environment</h2>

<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>4.2.0</td>
</tr>
<tr>
<td>node</td>
<td>8.9.1</td>
</tr>
<tr>
<td>OS</td>
<td>windows 10</td>
</tr>
<tr>
<td>browser</td>
<td>chrome</td>
</tr>
</tbody>
</table>