4

error no-undef 'sforce' is not defined
Line:196:13 sforce.one.back(true);

As a solution I did following checks -

if(typeof sforce !== 'undefined') {
  sforce.one.back(true);
}

It is still giving me same error.

4

This error can be solved by Documentation given by ESLint http://eslint.org/docs/rules/no-undef You can add

/*global sforce:true*/
if(typeof sforce !== 'undefined') {
  sforce.one.back(true);
}

This will solve the problem.

1

The lightning CLI is chatty at this moment and not all of the warnings and errors needs to be resolved .This is definitely a false positive and need not be resolved .

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.