-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Labels
Description
Expected Behavior
The example is not working and running into an error.
Actual Behavior
Executing the example results in an error:
`$ node app.js
[...]/app.js:13
event.setPubsubName('pubsub');
^
TypeError: event.setPubsubName is not a function
at Object. ([...]/js-sdk/examples/simple/app.js:13:7)
at Module._compile (internal/modules/cjs/loader.js:778:30)
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 Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)`
Steps to Reproduce the Problem
- Clone the repository
- go to ./examples/simple
- execute
npm install
- start the sample by running
node app.js
(the "main" entry in the package.json points to an index.js that does not exist)