I have a client based on react and I bundle it with webpack 2. But the moment I import/require const SpeechToTextV1 = require('watson-developer-cloud/speech-to-text/v1');
I got some trouble. After I fixed it that it does not break the build, it still throws some warning like:
Module not found: Error: Can't resolve '../build/Release/validation' in '/Users/denbox/Desktop/schedulebot/web-interface/node_modules/websocket/lib'
@ ./~/websocket/lib/Validation.js 9:21-59
@ ./~/websocket/lib/WebSocketConnection.js
@ ./~/websocket/lib/websocket.js
@ ./~/websocket/index.js
@ ./~/watson-developer-cloud/speech-to-text/recognize_stream.js
@ ./~/watson-developer-cloud/speech-to-text/v1.js
@ ./src/components/chat.jsx
@ ./src/components/chat-page.js
@ ./src/index.js
@ multi (webpack)-dev-server/client?http://localhost:8080 ./src/index.js
Is it even possible to use the watson-developer-cloud node sdk for the speech-to-text service on the client or only directly on the nodejs server? Thank you.