<p dir="auto">I am facing an error when running <code class="notranslate">next build</code> on my project with Inferno.JS.</p>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Build the project without errors.</p>
<h2 dir="auto">Current Behavior</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="yarn run v1.5.1
$ next build
&gt; Using external babel configuration
&gt; Location: &quot;/home/gcfabri/Workspace/fazanicrm/.babelrc&quot;
&gt; Failed to build
{ Error: (client) ./node_modules/inferno-compat/dist/index.mjs
Module not found: Error: Can't resolve 'inferno-clone-vnode' in '/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist'
resolve 'inferno-clone-vnode' in '/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist'
  Parsed request is a module
  using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)
    resolve as module
      looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules
        using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)
          Field 'browser' doesn't contain a valid alias configuration
        after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)
          using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules/inferno-clone-vnode)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.js doesn't exist
            .jsx
              Field 'browser' doesn't contain a valid alias configuration
              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.jsx doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.json doesn't exist
            as directory
              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode doesn't exist
      /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules doesn't exist or is not a directory
      /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules doesn't exist or is not a directory
      /home/gcfabri/Workspace/fazanicrm/node_modules/node_modules doesn't exist or is not a directory
      /home/gcfabri/Workspace/node_modules doesn't exist or is not a directory
      /home/gcfabri/node_modules doesn't exist or is not a directory
      /home/node_modules doesn't exist or is not a directory
      /node_modules doesn't exist or is not a directory
      looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules
        using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)
          Field 'browser' doesn't contain a valid alias configuration
        after using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)
          using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules/inferno-clone-vnode)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.js doesn't exist
            .jsx
              Field 'browser' doesn't contain a valid alias configuration
              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.jsx doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.json doesn't exist
            as directory
              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode doesn't exist
[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode]
[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.js]
[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.jsx]
[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.json]
[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode]
[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules]
[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules]
[/home/gcfabri/Workspace/fazanicrm/node_modules/node_modules]
[/home/gcfabri/Workspace/node_modules]
[/home/gcfabri/node_modules]
[/home/node_modules]
[/node_modules]
[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode]
[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.js]
[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.jsx]
[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.json]
[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode]
 @ ./node_modules/inferno-compat/dist/index.mjs 3:0-49 4:0-77
 @ ./node_modules/next/dist/client/index.js
 @ ./node_modules/next/dist/client/next.js
 @ multi ./node_modules/next/dist/client/next.js
    at /home/gcfabri/Workspace/fazanicrm/node_modules/next/dist/server/build/index.js:162:31
    at runWithDependencies (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/MultiCompiler.js:154:4)
    at /home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:1126:9
    at /home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:473:16
    at iteratorCallback (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:1050:13)
    at /home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:958:16
    at /home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:1123:13
    at runCompilers (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/MultiCompiler.js:96:47)
    at fn (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/MultiCompiler.js:101:6)
    at compiler.run (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/MultiCompiler.js:150:5)
    at emitRecords.err (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/Compiler.js:265:13)
    at Compiler.emitRecords (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/Compiler.js:371:38)
    at emitAssets.err (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/Compiler.js:258:10)
    at applyPluginsAsyncSeries1.err (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/Compiler.js:364:12)
    at next (/home/gcfabri/Workspace/fazanicrm/node_modules/tapable/lib/Tapable.js:218:11)
    at Compiler.compiler.plugin (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
  errors: 
   [ '(client) ./node_modules/inferno-compat/dist/index.mjs\nModule not found: Error: Can\'t resolve \'inferno-clone-vnode\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\nresolve \'inferno-clone-vnode\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\n  Parsed request is a module\n  using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n    Field \'browser\' doesn\'t contain a valid alias configuration\n  after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n    resolve as module\n      looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules\n        using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n          Field \'browser\' doesn\'t contain a valid alias configuration\n        after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n          using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules/inferno-clone-vnode)\n            no extension\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode doesn\'t exist\n            .js\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.js doesn\'t exist\n            .jsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.jsx doesn\'t exist\n            .json\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.json doesn\'t exist\n            as directory\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode doesn\'t exist\n      /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/Workspace/fazanicrm/node_modules/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/Workspace/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/node_modules doesn\'t exist or is not a directory\n      /home/node_modules doesn\'t exist or is not a directory\n      /node_modules doesn\'t exist or is not a directory\n      looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules\n        using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n          Field \'browser\' doesn\'t contain a valid alias configuration\n        after using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n          using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules/inferno-clone-vnode)\n            no extension\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode doesn\'t exist\n            .js\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.js doesn\'t exist\n            .jsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.jsx doesn\'t exist\n            .json\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.json doesn\'t exist\n            as directory\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode doesn\'t exist\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/node_modules]\n[/home/gcfabri/Workspace/node_modules]\n[/home/gcfabri/node_modules]\n[/home/node_modules]\n[/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode]\n @ ./node_modules/inferno-compat/dist/index.mjs 3:0-49 4:0-77\n @ ./node_modules/next/dist/client/index.js\n @ ./node_modules/next/dist/client/next.js\n @ multi ./node_modules/next/dist/client/next.js',
     '(client) ./node_modules/inferno-compat/dist/index.mjs\nModule not found: Error: Can\'t resolve \'inferno-create-class\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\nresolve \'inferno-create-class\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\n  Parsed request is a module\n  using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n    Field \'browser\' doesn\'t contain a valid alias configuration\n  after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n    resolve as module\n      looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules\n        using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n          Field \'browser\' doesn\'t contain a valid alias configuration\n        after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n          using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules/inferno-create-class)\n            no extension\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class doesn\'t exist\n            .js\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.js doesn\'t exist\n            .jsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.jsx doesn\'t exist\n            .json\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.json doesn\'t exist\n            as directory\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class doesn\'t exist\n      /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/Workspace/fazanicrm/node_modules/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/Workspace/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/node_modules doesn\'t exist or is not a directory\n      /home/node_modules doesn\'t exist or is not a directory\n      /node_modules doesn\'t exist or is not a directory\n      looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules\n        using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n          Field \'browser\' doesn\'t contain a valid alias configuration\n        after using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n          using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules/inferno-create-class)\n            no extension\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class doesn\'t exist\n            .js\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.js doesn\'t exist\n            .jsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.jsx doesn\'t exist\n            .json\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.json doesn\'t exist\n            as directory\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class doesn\'t exist\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/node_modules]\n[/home/gcfabri/Workspace/node_modules]\n[/home/gcfabri/node_modules]\n[/home/node_modules]\n[/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class]\n @ ./node_modules/inferno-compat/dist/index.mjs 5:0-51 6:0-51\n @ ./node_modules/next/dist/client/index.js\n @ ./node_modules/next/dist/client/next.js\n @ multi ./node_modules/next/dist/client/next.js',
     '(client) ./node_modules/inferno-compat/dist/index.mjs\nModule not found: Error: Can\'t resolve \'inferno-create-element\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\nresolve \'inferno-create-element\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\n  Parsed request is a module\n  using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n    Field \'browser\' doesn\'t contain a valid alias configuration\n  after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n    resolve as module\n      looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules\n        using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n          Field \'browser\' doesn\'t contain a valid alias configuration\n        after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n          using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules/inferno-create-element)\n            no extension\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element doesn\'t exist\n            .js\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.js doesn\'t exist\n            .jsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.jsx doesn\'t exist\n            .json\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.json doesn\'t exist\n            as directory\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element doesn\'t exist\n      /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/Workspace/fazanicrm/node_modules/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/Workspace/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/node_modules doesn\'t exist or is not a directory\n      /home/node_modules doesn\'t exist or is not a directory\n      /node_modules doesn\'t exist or is not a directory\n      looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules\n        using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n          Field \'browser\' doesn\'t contain a valid alias configuration\n        after using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n          using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules/inferno-create-element)\n            no extension\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element doesn\'t exist\n            .js\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.js doesn\'t exist\n            .jsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.jsx doesn\'t exist\n            .json\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.json doesn\'t exist\n            as directory\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element doesn\'t exist\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/node_modules]\n[/home/gcfabri/Workspace/node_modules]\n[/home/gcfabri/node_modules]\n[/home/node_modules]\n[/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element]\n @ ./node_modules/inferno-compat/dist/index.mjs 7:0-55 8:0-55\n @ ./node_modules/next/dist/client/index.js\n @ ./node_modules/next/dist/client/next.js\n @ multi ./node_modules/next/dist/client/next.js' ],
  warnings: [] }
error An unexpected error occurred: &quot;Command failed.
Exit code: 1
Command: sh
Arguments: -c next build
Directory: /home/gcfabri/Workspace/fazanicrm
Output:
&quot;.
info If you think this is a bug, please open a bug report with the information provided in &quot;/home/gcfabri/Workspace/fazanicrm/yarn-error.log&quot;.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command."><pre class="notranslate"><code class="notranslate">yarn run v1.5.1
$ next build
&gt; Using external babel configuration
&gt; Location: "/home/gcfabri/Workspace/fazanicrm/.babelrc"
&gt; Failed to build
{ Error: (client) ./node_modules/inferno-compat/dist/index.mjs
Module not found: Error: Can't resolve 'inferno-clone-vnode' in '/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist'
resolve 'inferno-clone-vnode' in '/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist'
  Parsed request is a module
  using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)
    resolve as module
      looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules
        using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)
          Field 'browser' doesn't contain a valid alias configuration
        after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)
          using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules/inferno-clone-vnode)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.js doesn't exist
            .jsx
              Field 'browser' doesn't contain a valid alias configuration
              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.jsx doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.json doesn't exist
            as directory
              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode doesn't exist
      /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules doesn't exist or is not a directory
      /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules doesn't exist or is not a directory
      /home/gcfabri/Workspace/fazanicrm/node_modules/node_modules doesn't exist or is not a directory
      /home/gcfabri/Workspace/node_modules doesn't exist or is not a directory
      /home/gcfabri/node_modules doesn't exist or is not a directory
      /home/node_modules doesn't exist or is not a directory
      /node_modules doesn't exist or is not a directory
      looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules
        using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)
          Field 'browser' doesn't contain a valid alias configuration
        after using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)
          using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules/inferno-clone-vnode)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.js doesn't exist
            .jsx
              Field 'browser' doesn't contain a valid alias configuration
              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.jsx doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.json doesn't exist
            as directory
              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode doesn't exist
[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode]
[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.js]
[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.jsx]
[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.json]
[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode]
[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules]
[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules]
[/home/gcfabri/Workspace/fazanicrm/node_modules/node_modules]
[/home/gcfabri/Workspace/node_modules]
[/home/gcfabri/node_modules]
[/home/node_modules]
[/node_modules]
[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode]
[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.js]
[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.jsx]
[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.json]
[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode]
 @ ./node_modules/inferno-compat/dist/index.mjs 3:0-49 4:0-77
 @ ./node_modules/next/dist/client/index.js
 @ ./node_modules/next/dist/client/next.js
 @ multi ./node_modules/next/dist/client/next.js
    at /home/gcfabri/Workspace/fazanicrm/node_modules/next/dist/server/build/index.js:162:31
    at runWithDependencies (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/MultiCompiler.js:154:4)
    at /home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:1126:9
    at /home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:473:16
    at iteratorCallback (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:1050:13)
    at /home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:958:16
    at /home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:1123:13
    at runCompilers (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/MultiCompiler.js:96:47)
    at fn (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/MultiCompiler.js:101:6)
    at compiler.run (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/MultiCompiler.js:150:5)
    at emitRecords.err (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/Compiler.js:265:13)
    at Compiler.emitRecords (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/Compiler.js:371:38)
    at emitAssets.err (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/Compiler.js:258:10)
    at applyPluginsAsyncSeries1.err (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/Compiler.js:364:12)
    at next (/home/gcfabri/Workspace/fazanicrm/node_modules/tapable/lib/Tapable.js:218:11)
    at Compiler.compiler.plugin (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
  errors: 
   [ '(client) ./node_modules/inferno-compat/dist/index.mjs\nModule not found: Error: Can\'t resolve \'inferno-clone-vnode\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\nresolve \'inferno-clone-vnode\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\n  Parsed request is a module\n  using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n    Field \'browser\' doesn\'t contain a valid alias configuration\n  after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n    resolve as module\n      looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules\n        using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n          Field \'browser\' doesn\'t contain a valid alias configuration\n        after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n          using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules/inferno-clone-vnode)\n            no extension\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode doesn\'t exist\n            .js\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.js doesn\'t exist\n            .jsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.jsx doesn\'t exist\n            .json\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.json doesn\'t exist\n            as directory\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode doesn\'t exist\n      /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/Workspace/fazanicrm/node_modules/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/Workspace/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/node_modules doesn\'t exist or is not a directory\n      /home/node_modules doesn\'t exist or is not a directory\n      /node_modules doesn\'t exist or is not a directory\n      looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules\n        using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n          Field \'browser\' doesn\'t contain a valid alias configuration\n        after using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n          using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules/inferno-clone-vnode)\n            no extension\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode doesn\'t exist\n            .js\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.js doesn\'t exist\n            .jsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.jsx doesn\'t exist\n            .json\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.json doesn\'t exist\n            as directory\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode doesn\'t exist\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/node_modules]\n[/home/gcfabri/Workspace/node_modules]\n[/home/gcfabri/node_modules]\n[/home/node_modules]\n[/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode]\n @ ./node_modules/inferno-compat/dist/index.mjs 3:0-49 4:0-77\n @ ./node_modules/next/dist/client/index.js\n @ ./node_modules/next/dist/client/next.js\n @ multi ./node_modules/next/dist/client/next.js',
     '(client) ./node_modules/inferno-compat/dist/index.mjs\nModule not found: Error: Can\'t resolve \'inferno-create-class\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\nresolve \'inferno-create-class\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\n  Parsed request is a module\n  using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n    Field \'browser\' doesn\'t contain a valid alias configuration\n  after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n    resolve as module\n      looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules\n        using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n          Field \'browser\' doesn\'t contain a valid alias configuration\n        after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n          using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules/inferno-create-class)\n            no extension\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class doesn\'t exist\n            .js\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.js doesn\'t exist\n            .jsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.jsx doesn\'t exist\n            .json\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.json doesn\'t exist\n            as directory\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class doesn\'t exist\n      /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/Workspace/fazanicrm/node_modules/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/Workspace/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/node_modules doesn\'t exist or is not a directory\n      /home/node_modules doesn\'t exist or is not a directory\n      /node_modules doesn\'t exist or is not a directory\n      looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules\n        using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n          Field \'browser\' doesn\'t contain a valid alias configuration\n        after using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n          using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules/inferno-create-class)\n            no extension\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class doesn\'t exist\n            .js\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.js doesn\'t exist\n            .jsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.jsx doesn\'t exist\n            .json\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.json doesn\'t exist\n            as directory\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class doesn\'t exist\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/node_modules]\n[/home/gcfabri/Workspace/node_modules]\n[/home/gcfabri/node_modules]\n[/home/node_modules]\n[/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class]\n @ ./node_modules/inferno-compat/dist/index.mjs 5:0-51 6:0-51\n @ ./node_modules/next/dist/client/index.js\n @ ./node_modules/next/dist/client/next.js\n @ multi ./node_modules/next/dist/client/next.js',
     '(client) ./node_modules/inferno-compat/dist/index.mjs\nModule not found: Error: Can\'t resolve \'inferno-create-element\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\nresolve \'inferno-create-element\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\n  Parsed request is a module\n  using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n    Field \'browser\' doesn\'t contain a valid alias configuration\n  after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n    resolve as module\n      looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules\n        using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n          Field \'browser\' doesn\'t contain a valid alias configuration\n        after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n          using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules/inferno-create-element)\n            no extension\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element doesn\'t exist\n            .js\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.js doesn\'t exist\n            .jsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.jsx doesn\'t exist\n            .json\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.json doesn\'t exist\n            as directory\n              /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element doesn\'t exist\n      /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/Workspace/fazanicrm/node_modules/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/Workspace/node_modules doesn\'t exist or is not a directory\n      /home/gcfabri/node_modules doesn\'t exist or is not a directory\n      /home/node_modules doesn\'t exist or is not a directory\n      /node_modules doesn\'t exist or is not a directory\n      looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules\n        using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n          Field \'browser\' doesn\'t contain a valid alias configuration\n        after using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n          using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules/inferno-create-element)\n            no extension\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element doesn\'t exist\n            .js\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.js doesn\'t exist\n            .jsx\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.jsx doesn\'t exist\n            .json\n              Field \'browser\' doesn\'t contain a valid alias configuration\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.json doesn\'t exist\n            as directory\n              /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element doesn\'t exist\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/node_modules]\n[/home/gcfabri/Workspace/node_modules]\n[/home/gcfabri/node_modules]\n[/home/node_modules]\n[/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element]\n @ ./node_modules/inferno-compat/dist/index.mjs 7:0-55 8:0-55\n @ ./node_modules/next/dist/client/index.js\n @ ./node_modules/next/dist/client/next.js\n @ multi ./node_modules/next/dist/client/next.js' ],
  warnings: [] }
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: sh
Arguments: -c next build
Directory: /home/gcfabri/Workspace/fazanicrm
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "/home/gcfabri/Workspace/fazanicrm/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
</code></pre></div>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>


<ol dir="auto">
<li>next build</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">I followed the examples concerning use of <a href="https://github.com/zeit/next.js/tree/canary/examples/using-inferno">inferno</a>, <a href="https://github.com/zeit/next.js/tree/canary/examples/custom-server-express">custom-server-express</a> and <a href="https://github.com/zeit/next.js/tree/canary/examples/with-apollo">apollo</a>.</p>
<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>5.0.1-canary.15</td>
</tr>
<tr>
<td>node</td>
<td>v9.5.0</td>
</tr>
<tr>
<td>OS</td>
<td>elementary OS 0.4.1 Loki</td>
</tr>
<tr>
<td>inferno</td>
<td>^4.0.8</td>
</tr>
<tr>
<td>inferno-compat</td>
<td>^4.0.8</td>
</tr>
<tr>
<td>inferno-server</td>
<td>^4.0.8</td>
</tr>
<tr>
<td>react</td>
<td>^16.2.0</td>
</tr>
<tr>
<td>react-dom</td>
<td>^16.2.0</td>
</tr>
</tbody>
</table>
<h1 dir="auto">Feature request</h1>
<p dir="auto">While I'm analyzing my bundle I realize that there are some packages (in my case huge momentjs with full languages) in both <code class="notranslate">_app</code> and in some pages.<br>
IMHO there are no reasons to generate _app bundle. Merging the content of _app with common would have this benefits:</p>
<ul dir="auto">
<li>remove 1 HTTP request for app bundle</li>
<li>packages included in app bundle could be removed from pages</li>
</ul>
<h2 dir="auto">Describe the solution you'd like</h2>
<p dir="auto">Update internal webpack config to "merge" <code class="notranslate">_app</code> and <code class="notranslate">commons</code> chunks</p>
<h2 dir="auto">Describe alternatives you've considered</h2>
<p dir="auto">In my case, I moved moment co common by adding something like this to next.config, but would be nice if it works out of the box.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// Add moment to commons
if (config.optimization.splitChunks.cacheGroups) {
  config.optimization.splitChunks.cacheGroups.moment = {
    test: /\/node_modules\/moment/,
    name: &quot;commons&quot;,
    chunks: &quot;all&quot;,
  }
}"><pre class="notranslate"><code class="notranslate">// Add moment to commons
if (config.optimization.splitChunks.cacheGroups) {
  config.optimization.splitChunks.cacheGroups.moment = {
    test: /\/node_modules\/moment/,
    name: "commons",
    chunks: "all",
  }
}
</code></pre></div>