Open martinlundin opened 5 years ago
Same error when I try to import it to Vue/Nuxt.
To reproduce error:
yarn create nuxt-app nuxttestchat
open pages/index.vue and add:
import { driver, methodCache, api } from '@rocket.chat/sdk'
run:
yarn run dev
Same error as before with websocket http_parser.js
I had the same error too, and fixed it by updating your package.json entry for the sdk to this:
"@rocket.chat/sdk": "1.0.0-alpha.30"
This version is the one used by RC's own react-native client, and also worked for me when trialing with plain react.
I get an error when including the rocket.chat/sdk in a react app.
Steps to reproduce:
yarn create react-app testchat
cd testchat
yarn add @rocket.chat/sdk
open App.js and add:
import { driver, methodCache, api } from '@rocket.chat/sdk'
Now when we run:npm start
there is this error:What can I do to make this work together? Thanks