Dear All!
Get error:
" `SyntaxError: Unexpected token ...`"on the stage: build the sunstone.
when making:
grunt --gruntfile ./Gruntfile.js sass
Thank you for your response!
Versions of the related components and OS (frontend, hypervisors, VMs):
OS: CentOS Linux release 7.7.1908 (Core)
Ruby: 2.3.2
npm 3.10.10
Steps to reproduce:
git clone https://github.com/OpenNebula/one opennebula-5.10.3
cd opennebula-5.10.3
git checkout tags/release-5.10.3
# manual pages
cd share/man
./build.sh
cd ../../
# sunstone
cd src/sunstone/public
./build.sh -d
export PATH=$PATH:$PWD/node_modules/.bin
./build.sh
Current results:
full STDOUT of the log :
Writing /builds/cloud-team/opennebula_builder/opennebula-5.10.3/src/sunstone/public/bower_components/no-vnc/lib/util/polyfill.js Writing /builds/cloud-team/opennebula_builder/opennebula-5.10.3/src/sunstone/public/bower_components/no-vnc/lib/util/strings.js + sed -i -e 's/'\''\.\//'\''\.\.\/bower_components\/no-vnc\/lib\//g' lib/rfb.js + PATCH_DIR=./patches/ ++ ls ./patches/ ls: cannot access ./patches/: No such file or directory + '[' no = yes ']' + grunt --gruntfile ./Gruntfile.js sass /builds/cloud-team/opennebula_builder/opennebula-5.10.3/src/sunstone/public/node_modules/mkdirp/lib/opts-arg.js:7 opts = { mode: 0o777, fs, ...opts } ^^^ SyntaxError: Unexpected token ... at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at Module._compile (module.js:549:28) at Object.Module._extensions..js (module.js:586:10) at Module.load (/builds/cloud-team/opennebula_builder/opennebula-5.10.3/src/sunstone/public/node_modules/coffeescript/lib/coffee-script/register.js:45:36) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) at Module.require (module.js:504:17) at require (internal/module.js:20:19) at Object. (/builds/cloud-team/opennebula_builder/opennebula-5.10.3/src/sunstone/public/node_modules/mkdirp/index.js:1:79) at Module._compile (module.js:577:32) at Object.Module._extensions..js (module.js:586:10) at Module.load (/builds/cloud-team/opennebula_builder/opennebula-5.10.3/src/sunstone/public/node_modules/coffeescript/lib/coffee-script/register.js:45:36) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) at Module.require (module.js:504:17) at require (internal/module.js:20:19) at Object. (/builds/cloud-team/opennebula_builder/opennebula-5.10.3/src/sunstone/public/node_modules/grunt/lib/grunt/file.js:20:31) at Module._compile (module.js:577:32) at Object.Module._extensions..js (module.js:586:10) at Module.load (/builds/cloud-team/opennebula_builder/opennebula-5.10.3/src/sunstone/public/node_modules/coffeescript/lib/coffee-script/register.js:45:36) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) at Module.require (module.js:504:17) at require (internal/module.js:20:19) at gRequire (/builds/cloud-team/opennebula_builder/opennebula-5.10.3/src/sunstone/public/node_modules/grunt/lib/grunt.js:14:24) at Object. (/builds/cloud-team/opennebula_builder/opennebula-5.10.3/src/sunstone/public/node_modules/grunt/lib/grunt.js:28:1) at Module._compile (module.js:577:32) at Object.Module._extensions..js (module.js:586:10) at Module.load (module.js:494:32) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) at Module.require (module.js:504:17) at require (internal/module.js:20:19) at Liftoff. (/builds/cloud-team/opennebula_builder/opennebula-5.10.3/src/sunstone/public/node_modules/grunt-cli/bin/grunt:65:19) at Liftoff.execute (/builds/cloud-team/opennebula_builder/opennebula-5.10.3/src/sunstone/public/node_modules/liftoff/index.js:203:12) at module.exports (/builds/cloud-team/opennebula_builder/opennebula-5.10.3/src/sunstone/public/node_modules/flagged-respawn/index.js:51:3) at Liftoff. (/builds/cloud-team/opennebula_builder/opennebula-5.10.3/src/sunstone/public/node_modules/liftoff/index.js:195:5) at Liftoff. (/builds/cloud-team/opennebula_builder/opennebula-5.10.3/src/sunstone/public/node_modules/liftoff/index.js:170:7) at _combinedTickCallback (internal/process/next_tick.js:73:7) at process._tickCallback (internal/process/next_tick.js:104:9)
Expected results:
Running "sass:dist" (sass) task Done. Running "requirejs:compileCSS" (requirejs) task Running "requirejs:compileJS" (requirejs) task Done.