Skip to content

Trying browser pub/sub in react.js (Not working) #421

Answered by jmklix
Dipanshusing asked this question in Q&A
Discussion options

You must be logged in to vote

@github-actions proposed-answer

You need to make sure that your tsconfig.json links to the browser path rather than the default node.js. ie. it need to look like this:

      "paths": {
        "aws-iot-device-sdk-v2": ["node_modules/aws-iot-device-sdk-v2/dist/browser"]
      },

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Dipanshusing
Comment options

Comment options

You must be logged in to vote
1 reply
@jmklix
Comment options

Answer selected by jmklix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants