vatesfr / xen-orchestra

The global orchestration solution to manage and backup XCP-ng and XenServer.
https://xen-orchestra.com
Other
750 stars 261 forks source link

Build fails #4148

Closed vimpostor closed 5 years ago

vimpostor commented 5 years ago

When I compile from sources, the build fails. I was updating from an existing install and did the normal yarn && yarn build thingy and got the following error:

[08:18:18] 'buildScripts' errored after 2.46 s
[08:18:18] Error: Cannot find module './lib/dynamic-import'                                           
    at Function.Module._resolveFilename (module.js:547:15)                                            
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/opt/xen-orchestra/node_modules/acorn-node/walk.js:3:24)                   
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)                                               
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
[08:18:18] 'build' errored after 2.48 s
[08:18:18] The following tasks did not complete: buildPages, buildStyles, copyAssets                  
[08:18:18] Did you forget to signal async completion?                                                 
* xo-web:build − Error: 1

This happens with the current master HEAD: f27170ff0e8e4facfe3de9017acd2e594fa487a3

The version, that I had previously, is: f6c2cbc5c

Going back to this commit makes yarn && yarn build pass again.

julien-f commented 5 years ago

I cannot reproduce, please show me output of yarn versions.

vimpostor commented 5 years ago

Here is the output:

yarn versions v1.7.0
{ yarn: '1.7.0',
  http_parser: '2.8.0',
  node: '8.11.3',
  v8: '6.2.414.54',
  uv: '1.19.1',
  zlib: '1.2.11',
  ares: '1.10.1-DEV',
  modules: '57',
  nghttp2: '1.32.0',
  napi: '3',
  openssl: '1.0.2o',
  icu: '60.1',
  unicode: '10.0',
  cldr: '32.0',
  tz: '2017c' }
Done in 0.04s.
vimpostor commented 5 years ago

Fixed with rm -rf node_modules && yarn && yarn build