Skip to content

npm module hoek - line 148 - SyntaxError: Unexpected identifier #2665

@melwynt

Description

@melwynt

Hi,

When executing this first command in the Learn IDE:
learn test

This error came up:

/home/melwyn-122593/code/labs/javascript-intro-to-functions-lab-bootcamp-prep-000/node_modules/hoek/lib/index.js:148
exports.applyToDefaults = function (defaults, options, isNullOverride)  row[3] + ' (' + row[0] + ':' + row[1] + ':' + r
ow[2] + ')');
                                                                        ^^^
SyntaxError: Unexpected identifier

hoek

To get rid of this issue, I modified line 148 of file "./node_modules/hoek/lib/index.js:148".

Open the file with vi:
vi ./node_modules/hoek/lib/index.js

I replaced this part:

exports.applyToDefaults = function (defaults, options, isNullOverride)  row[3] ++
 ' (' + row[0] + ':' + row[1] + ':' + row[2] + ')');
    }
    return display;
};

With this:

exports.applyToDefaults = function (defaults, options, isNullOverride) {
 var display = row[3] + ' (' + row[0] + ':' + row[1] + ':' + row[2] + ')';
 return display;
};

I hope that will help someone with the same issue.

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions