-
Notifications
You must be signed in to change notification settings - Fork 157
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
Build fails on communication-calling package #64
Comments
Followed the same steps and was able to repo. Setup Steps: > npm init @vitejs/app peerque --template vue-ts
> cd peerque
> npm i
> npm i @azure/communication-calling@1.0.0 @azure/communication-common@1.0.0 @azure/communication-identity@1.0.0
> npm run dev Repro steps: import * as communication_calling from '@azure/communication-calling';
console.log(communication_calling); Reload page. Result: 11:12:15 a.m. [vite] new dependencies found: @azure/communication-calling, updating...
> node_modules/@azure/communication-calling/dist-esm/sdk.bundle.js:18:13900: error: Cannot assign to "i" because it is a constant
18 │ ...e),n=!1)},dispose:()=>{i=void 0}}}function asse...
╵ ^
node_modules/@azure/communication-calling/dist-esm/sdk.bundle.js:18:13765: note: "i" was declared a constant here
18 │ ...r(){let e,t,n=!0;const i=new Promise(((n,i)=>{e...
╵ ^ This is a bug in the SDK and not in the calling-sample (this repo). Creating bug new bug in their repo... |
Issue created here Azure/azure-sdk-for-js#15479, @canperk can you subscribe to notifications on this new issue and the corresponding team should follow up with you shortly. Closing this as duplicate of the newly created issue Azure/azure-sdk-for-js#15479. |
Minimal steps to reproduce
Any log messages given by the failure
node_modules/@azure/communication-calling/dist-esm/sdk.bundle.js:18:13900: error: Cannot assign to "i" because it is a constant
Expected/desired behavior
OS and Version?
Versions
Mention any other details that might be useful
I created and with:
npm init @vitejs/app peerque --template vue-ts
Then I added following packages to package.json to be able to test SDK functions.
I have a simple page that imports
@azure/communication-calling
but when I try to build project it fails with error hat I wrote above.When I change
const
tolet
in the source code build passes. I don't know if it is related to my tsconfig.json or not. I will share it just in case.Thanks in advance
The text was updated successfully, but these errors were encountered: