GoogleCloudPlatform / GoogleCloudPlatform/training-data-analyst

SyntaxError in containerengine/bonus/frontend/gcp/pubsub.js

Open
#525 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
8.6k
Forks
6.1k
Avg merge
4h 44m
Merged PRs (30d)
2

Description

https://github.com/GoogleCloudPlatform/training-data-analyst/blob/e916f03b0274470c3f8b645106b37403043b5cee/courses/developingapps/nodejs/containerengine/bonus/frontend/gcp/pubsub.js#L37

Extra braces in the above file are causing `SyntaxError: Unexpected token )`.

Error log:
```
> node ./app.js

/app/gcp/pubsub.js:37
});
^

SyntaxError: Unexpected token )
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/app/api/index.js:20:19)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.