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

[JS problem introduced with ?.] #49

Closed
arafesthain opened this issue Jul 30, 2020 · 7 comments
Closed

[JS problem introduced with ?.] #49

arafesthain opened this issue Jul 30, 2020 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@arafesthain
Copy link
Contributor

arafesthain commented Jul 30, 2020

Anything that I should have done in version 3.3.1 ?

$ sgd -d -t HEAD -f origin/master -o output/ -r .
C:\Users\alexis.rafesthain\AppData\Roaming\npm\node_modules\sfdx-git-delta\bin\cli:38
  if (jobResult?.warnings?.length) {
                ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:1063:16)
    at Module._compile (internal/modules/cjs/loader.js:1111:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
    at Module.load (internal/modules/cjs/loader.js:996:32)
    at Function.Module._load (internal/modules/cjs/loader.js:896:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47

Execution context
Operating System: …
Windows 10
NPM version: …
6.14.5
Node version: …
v13.12.0
sgd version: …
3.3.1

@arafesthain arafesthain added the bug Something isn't working label Jul 30, 2020
@saakshi-gupta
Copy link

We are also running into the same issue. All the deployments till 4 hours ago were successful. After that, all have failed.

@scolladon
Copy link
Owner

Hello,

This is related to the node engine version required.
The latest release has introduced this.

Look the engines.node version in the package.json it requires node version 14.6.0 or above to run.

@arafesthain @saakshig @engineerakki could you update node and see if you still have issue please ?

@arafesthain
Copy link
Contributor Author

@scolladon yep I saw this in review process but don't understand why installation of sgd is not failing if I'm missing node version requirement

@arafesthain
Copy link
Contributor Author

arafesthain commented Jul 30, 2020

@scolladon alright from there (for custom labels too) 👍

@scolladon
Copy link
Owner

Maybe because you did an update instead of an install ?
Does upgrading nodes has fixed your environment ?

Would you be able to suggest a process for the next time ? So upgrading the engine to benefit from the new feature of the js will not make you lose time because of breaking in runtime.
What could be suitable for you ?

@arafesthain
Copy link
Contributor Author

arafesthain commented Jul 30, 2020

@scolladon truth is my pipeline didn't break without updating node version :') but on my (wonderful) windows computer it did..

For this kind of stuff I will suggest a major release ? but not sure it fit in this scenario.

I did force the pipeline to stay on a chosen version so it will well fit in my case ^^
sudo npm install sfdx-git-delta@^3.0.0 --global

@scolladon
Copy link
Owner

Good advice thanks

We will definitly need to deal properly with this kind of situation @mehdisfdc
We should define a simple process for that with the input from @arafesthain

I was a little bit rough on this one :D
Sorry guys, I hope you will enjoyed the improvements though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants