-
Notifications
You must be signed in to change notification settings - Fork 24
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
Cannot read property 'join' of undefined path.posix #85
Comments
@leblancdavid It may be related to ESM imports. The package exposes both Commonjs and ESM modules. |
To give you a bit more context, I'm trying to build an angular UI on top of it. I'm on windows 10. I'm trying to look at the example right now to figure out what I am missing. Here is my package.json
Could it be related to my tsconfig.json? |
Thanks: that's a good idea. I had a UI two years ago but did not have enough time to maintain it. I now focus on the lower-level library. If you use Typescript, make sure that In your
Please also note that you can theoretically swap the IO layer by your own implementation if you set the |
@leblancdavid As mentioned previously, this is caused by the presence of the |
Great! I'll see if that helps. Part of me thinks that my dev environment is not configured correctly since I'm getting issues with the "esModuleInterop": true flag. In VS Code it recognizes it but when I "ng serve" it doesn't. But I can't seem to find why that is. |
This option was introduced in Typescript 2.7, but I see that you are using |
Yes that was the issue. I was on typescript 2.6. Updating to 2.7 fixed that esModuleInterop issue but I still can't quite compile. Unfortunately I don't think the angular-cli is up to typescript 2.7 yet. I'm getting
This may simply be because of the angular-cli since I get this warning:
|
Ok, thanks for the info. |
This issue is fixed by #87. I also did a quick client for myself to test some features: it uses Angular for the frontend. I have custom services for contacts and conversations, but for events I just use a websocket to send them directly. WARNING: this is really messy (I use a single global instance of the Skype API, authentication is a bit brittle) but it may help you start a proper Angular client. |
Closed by #89 |
The fix was published in version |
I am getting an error when trying to login: (in microsoft-account.ts @116)
export async function getLiveKeys(options: LoadLiveKeysOptions): Promise<LiveKeys> { try { const uri: string = url.resolve(skypeLoginUri, path.posix.join("oauth", "microsoft"));
For some reason path.posix is undefined. I have the latest version of node.js. Any ideas why this would be the case?
The text was updated successfully, but these errors were encountered: