-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
@azure/core-http isNode function will mistake electron for node #26003
Comments
@jeremymeng can you look into this and also see what React-Native does? /cc @mpodwysocki for Deno |
@EmmaZhu suggested to add a browser version of One interesting thing for Electron is that it is also kinda of Client and there's some option |
in Core v2 we do use a browser version of isNode from core-util. I will try porting it to core-http |
core-http already depends on core-util. This PR removes core-http's `isNode` and export from core-util instead. ### Packages impacted by this PR `@azure/core-http` ### Issues associated with this PR #26003
### Packages impacted by this PR - @azure/core-util ### Issues associated with this PR #26003 ### Describe the problem that is addressed by this PR Adds extra environment checks for browser or other environments such as Deno, Bun, React-Native, Web Workers, etc ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [x] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary)
### Packages impacted by this PR - @azure/core-util ### Issues associated with this PR Azure#26003 ### Describe the problem that is addressed by this PR Adds extra environment checks for browser or other environments such as Deno, Bun, React-Native, Web Workers, etc ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [x] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary)
### Packages impacted by this PR - @azure/core-util ### Issues associated with this PR Azure#26003 ### Describe the problem that is addressed by this PR Adds extra environment checks for browser or other environments such as Deno, Bun, React-Native, Web Workers, etc ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [x] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary)
@mpodwysocki is this issue resolved in the latest core-util? |
I have started seeing this issue again when running angular in electron |
@amrit-moomie can you confirm what version of |
hi @xirzec Actually I am using the latest release 12.17.0 I am running an angular project inside Electron shell (desktop app) I started getting this issue recently #20095 (comment) I believe isNode function is not returning properly here, that is the root cause This was the original issue: #14742 |
@amrit-moomie if I understand you correctly, this is something you're experiencing with |
Yes. |
@azure/[email protected]"
For now it is :
maybe this make more sense as electron is more like a browser than Node.
The text was updated successfully, but these errors were encountered: