Why SyntaxError: Invalid shorthand property initializer

Another reason that might explain things is if you accidentally replace a colon with an equals sign instead.