I'm trying to run the command npm run build:lambda, but it keeps giving a syntax error:
****:git user$ npm run build:lambda
> [email protected] build:lambda /Users/****/git
> netlify-lambda build functions-active
netlify-lambda: Building functions
{ [SyntaxError: Expected "'", "'''", "+", "-", "[", "\"", "\"\"\"", "_", "false", "true", "{", [ \t] or [0-9] but "\u201C" found.]
message:
'Expected "\'", "\'\'\'", "+", "-", "[", "\\"", "\\"\\"\\"", "_", "false", "true", "{", [ \\t] or [0-9] but "\\u201C" found.',
expected:
[ { type: 'literal', value: '\'', description: '"\'"' },
{ type: 'literal', value: '\'\'\'', description: '"\'\'\'"' },
{ type: 'literal', value: '+', description: '"+"' },
{ type: 'literal', value: '-', description: '"-"' },
{ type: 'literal', value: '[', description: '"["' },
{ type: 'literal', value: '"', description: '"\\""' },
{ type: 'literal', value: '"""', description: '"\\"\\"\\""' },
{ type: 'literal', value: '_', description: '"_"' },
{ type: 'literal', value: 'false', description: '"false"' },
{ type: 'literal', value: 'true', description: '"true"' },
{ type: 'literal', value: '{', description: '"{"' },
{ type: 'class', value: '[ \\t]', description: '[ \\t]' },
{ type: 'class', value: '[0-9]', description: '[0-9]' } ],
found: '“',
offset: 22,
line: 2,
column: 15,
enter code here`
I have the netlify.toml configured with:
[build]
functions = “lambda“
And have the package.json configured with:
"scripts": {
"start:lambda": "netlify-lambda serve src/lambda",
"build:lambda": "netlify-lambda build functions-active"
},
It seems I'm missing something fundamental, but can't seem to figure out what.. Any help? Thanks!