0

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!

1 Answer 1

0

Just now seeing I'm using the wrong quotes, rookie mistake....

“lambda“ instead of "lambda"

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.