Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "simple" example is not working - TypeError: event.setPubsubName is not a function #52

Closed
jasparmang opened this issue Sep 21, 2020 · 2 comments
Assignees
Labels
bug Something isn't working P1

Comments

@jasparmang
Copy link

jasparmang commented Sep 21, 2020

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)
@artursouza artursouza added bug Something isn't working P1 labels Sep 21, 2020
@youngbupark
Copy link
Contributor

I realized that the last publish of this npm pkg was 3 months ago. we will publish new version for 0.10.0 dapr runtime by tomorrow. sorry for your inconvenience.

This was referenced Sep 22, 2020
@youngbupark
Copy link
Contributor

youngbupark commented Sep 22, 2020

0.6.0-preview01 npm pkg is released. please try it out.

https://www.npmjs.com/package/dapr-client/v/0.6.0-preview01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1
Projects
None yet
Development

No branches or pull requests

3 participants