Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis Failing for all of the latest PRs #439

Closed
cesswairimu opened this issue Mar 29, 2020 · 12 comments · Fixed by #441
Closed

Travis Failing for all of the latest PRs #439

cesswairimu opened this issue Mar 29, 2020 · 12 comments · Fixed by #441

Comments

@cesswairimu
Copy link
Collaborator

cesswairimu commented Mar 29, 2020

I see most of the recent PRs are all failing. Any help is highly appreciated.

Error

$ grunt build
/home/travis/build/publiclab/PublicLab.Editor/node_modules/grunt/node_modules/mkdirp/index.js:4
const {mkdirpNative, mkdirpNativeSync} = require('./lib/mkdirp-native.js')
0.29s$ grunt build
/home/travis/build/publiclab/PublicLab.Editor/node_modules/grunt/node_modules/mkdirp/lib/opts-arg.js:7
    opts = { mode: 0o777 & (~process.umask()), fs, ...opts }
                                                   ^^^
 grunt build
/home/travis/build/publiclab/PublicLab.Editor/node_modules/grunt/node_modules/mkdirp/lib/opts-arg.js:7
    opts = { mode: 0o777 & (~process.umask()), fs, ...opts }
                                                   ^^^
SyntaxError: Unexpected token ...
  at createScript (vm.js:53:10)
  at Object.runInThisContext (vm.js:95:10)
  at Module._compile (module.js:543:28)
  at Object.Module._extensions..js (module.js:580:10)
  at Module.load (/home/travis/build/publiclab/PublicLab.Editor/node_modules/coffeescript/lib/coffee-script/register.js:45:36)
  at tryModuleLoad (module.js:447:12)
  at Function.Module._load (module.js:439:3)
  at Module.require (module.js:498:17)
  at require (internal/module.js:20:19)
  at Object.<anonymous> (/home/travis/build/publiclab/PublicLab.Editor/node_modules/grunt/node_modules/mkdirp/index.js:1:79)
  at Module._compile (module.js:571:32)
  at Object.Module._extensions..js (module.js:580:10)
  at Module.load (/home/travis/build/publiclab/PublicLab.Editor/node_modules/coffeescript/lib/coffee-script/register.js:45:36)
  at tryModuleLoad (module.js:447:12)
  at Function.Module._load (module.js:439:3)
  at Module.require (module.js:498:17)
  at require (internal/module.js:20:19)
  at Object.<anonymous> (/home/travis/build/publiclab/PublicLab.Editor/node_modules/grunt/lib/grunt/file.js:20:14)
  at Module._compile (module.js:571:32)
  at Object.Module._extensions..js (module.js:580:10)
  at Module.load (/home/travis/build/publiclab/PublicLab.Editor/node_modules/coffeescript/lib/coffee-script/register.js:45:36)
  at tryModuleLoad (module.js:447:12)
  at Function.Module._load (module.js:439:3)
  at Module.require (module.js:498:17)
  at require (internal/module.js:20:19)
  at gRequire (/home/travis/build/publiclab/PublicLab.Editor/node_modules/grunt/lib/grunt.js:14:24)
  at Object.<anonymous> (/home/travis/build/publiclab/PublicLab.Editor/node_modules/grunt/lib/grunt.js:28:1)
  at Module._compile (module.js:571:32)
  at Object.Module._extensions..js (module.js:580:10)
  at Module.load (module.js:488:32)
  at tryModuleLoad (module.js:447:12)
  at Function.Module._load (module.js:439:3)
  at Module.require (module.js:498:17)
  at require (internal/module.js:20:19)
  at Object.<anonymous> (/home/travis/build/publiclab/PublicLab.Editor/node_modules/grunt/node_modules/grunt-cli/bin/grunt:44:1)
  at Module._compile (module.js:571:32)
  at Object.Module._extensions..js (module.js:580:10)
  at Module.load (module.js:488:32)
  at tryModuleLoad (module.js:447:12)
  at Function.Module._load (module.js:439:3)
  at Module.require (module.js:498:17)
  at require (internal/module.js:20:19)
  at Object.<anonymous> (/home/travis/build/publiclab/PublicLab.Editor/node_modules/grunt/bin/grunt:3:1)
  at Module._compile (module.js:571:32)
  at Object.Module._extensions..js (module.js:580:10)
  at Module.load (module.js:488:32)
  at tryModuleLoad (module.js:447:12)
  at Function.Module._load (module.js:439:3)
  at Module.runMain (module.js:605:10)
  at run (bootstrap_node.js:427:7)
  at startup (bootstrap_node.js:151:9)
  at bootstrap_node.js:542:3
@cesswairimu
Copy link
Collaborator Author

@gauravano @nstjean @crisner @emilyashley any ideas?

@VladimirMikulic
Copy link
Contributor

@cesswairimu the dependency uses object restructuring (...) which is not supported on Node < 8.3 version. Since we run tests on Node 5, 6, 7 it fails.

@VladimirMikulic
Copy link
Contributor

Upgrading the Node version would be appreciated.

@cesswairimu
Copy link
Collaborator Author

Thanks @VladimirMikulic

@cesswairimu
Copy link
Collaborator Author

@keshav234156 take a look

@VladimirMikulic
Copy link
Contributor

JS is welcome anytime :)

@harshkhandeparkar
Copy link
Member

Hi guys. Congrats on fixing this. But I would this fix as a workaround rather than a fix. I think not upgrading grunt is not good practice. You should always use the latest version of a package.

Also, nodejs version <8 support is stopped. I think we should support only version 8 and 10 (and 12 in the future). We have done that in ImageSequencer.

Node 8 and above support ES6 features that are supported even in the browsers and have become standard by now. Using old versions of nodejs and old features of javascript is not advisable.

If we desperately need support for older nodejs versions, we will have to write the code with new features, in node 8/10 and use Babel to downgrade the features for use in older browsers/older nodejs versions.

Not keeping dependencies/nodejs up to date is one rabbit hole you wouldn't want to go in.

Thank you!

@VladimirMikulic
Copy link
Contributor

@harshkhandeparkar couldn't agree more!

@keshav234156
Copy link
Member

@harshkhandeparkar I also agree with you .let's change it to 8 and 10 as of now

@cesswairimu
Copy link
Collaborator Author

Great everyone...should we open another issue for the fix ☝️ or keep this open?

@keshav234156
Copy link
Member

@cesswairimu made the changes in the same PR

@cesswairimu
Copy link
Collaborator Author

Great, thanks, I have pinged Jeff/Emily to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants