This repository has been archived by the owner on Mar 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Angular2 error TS2307: Cannot find module 'nativescript-opentok'. #44
Comments
I was having the same issue. I believe the missing index.d.ts in the main folder of the npm exported plugin is the issue. A work around is calling the import { TNSOTSession, TNSOTPublisher, TNSOTSubscriberI } from 'nativescript-opentok/opentok'; If you still having issues with your typos. Something like:
try uncomment the /**
* iOS and Android apis should match.
* It doesn't matter if you export `.ios` or `.android`, either one but only one.
*/
export * from './opentok.ios';
// Export any shared classes, constants, etc.
export * from './src/common'; // this line I'll open a PR for that fix. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
First off, really excited to use Tokbox on angular2. I followed the instructions for the Opentok angular2 integration and am still having this issue. I have tried re installing the module and re running npm install. Was wondering if there is something I am missing in the instructions?
The text was updated successfully, but these errors were encountered: