sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: ES Modules may not assign module.exports or exports.*, Use ESM export syntax
Labels: bug,SWC,Webpack,Module Resolution

### Link to the code that reproduces this issue

https://github.com/maulik1729/es-module-next-bug

### To Reproduce

1. clone the repo
2. yarn install
3. yarn build

### Current vs. Expected behavior

Current behavior:
`When I run yarn build it is giving below error
 Collecting page data  .Error: ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: 302 at Object.set [as exports] (/Users/maulikpatel/Desktop/next-14/.next/server/webpack-runtime.js:1:611) at 302 (/Users/maulikpatel/Desktop/next-14/.next/server/pages/index.js:1:1763) at t (/Users/maulikpatel/Desktop/next-14/.next/server/webpack-runtime.js:1:142) at 910 (/Users/maulikpatel/Desktop/next-14/.next/server/pages/index.js:1:703) at t (/Users/maulikpatel/Desktop/next-14/.next/server/webpack-runtime.js:1:142) at /Users/maulikpatel/Desktop/next-14/.next/server/pages/index.js:1:2259 at t.X (/Users/maulikpatel/Desktop/next-14/.next/server/webpack-runtime.js:1:1009) at /Users/maulikpatel/Desktop/next-14/.next/server/pages/index.js:1:2230 at Object.<anonymous> (/Users/maulikpatel/Desktop/next-14/.next/server/pages/index.js:1:2295) at Module._compile (node:internal/modules/cjs/loader:1256:14)`
 
 Expected behavior:
`yarn build` should run successfully without error.

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000
Binaries:
  Node: 18.18.2
  npm: 9.8.1
  Yarn: 1.22.21
  pnpm: 9.0.6
Relevant Packages:
  next: 14.1.0
  eslint-config-next: N/A
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.4.5
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Module Resolution, SWC, Webpack

### Which stage(s) are affected? (Select all that apply)

next build (local)

### Additional context

Same code is working for NextJS 14.0.4 but when I am trying to upgrade it to NextJS 14.1.0 it is breaking.
Repository: pytorch
Issue: The unexpected behavior of `min()`
Labels: module: error checking,triaged,actionable

### 🐛 Describe the bug

[min()](https://pytorch.org/docs/stable/generated/torch.min.html) with `input` and `keepdim` argument gets the error but `min()` with `input` and `dim` doesn't get error even though the error message doesn't have such a combination as shown below:

```python
import torch

my_tensor = torch.tensor([0, 1, 2])

torch.min(input=my_tensor, keepdim=True) # Error

torch.min(input=my_tensor, dim=0)
# torch.return_types.min(
# values=tensor(0),
# indices=tensor(0))
```

```
TypeError: min() received an invalid combination of arguments - got (keepdim=bool, input=Tensor, ), but expected one of:
 * (Tensor input, *, Tensor out)
 * (Tensor input, Tensor other, *, Tensor out)
 * (Tensor input, int dim, bool keepdim, *, tuple of Tensors out)
 * (Tensor input, name dim, bool keepdim, *, tuple of Tensors out)
```

And following the error message above, I couldn't use `min()` with `input` and the `name` type of `dim` argument as shown below but the `name` type of `dim` argument is not explained in [the doc](https://pytorch.org/docs/stable/generated/torch.min.html) of `min()`:

```python
import torch

my_tensor = torch.tensor([0, 1, 2])

torch.min(input=my_tensor, dim='zero') # RuntimeError: Name 'zero' not found in Tensor[None].
```


### Versions

```python
import torch

torch.__version__ # 2.2.1+cu121
```

cc @malfet
Repository: pytorch
Issue: The unexpected behavior of `max()`
Labels: module: error checking,triaged,actionable

### 🐛 Describe the bug

[max()](https://pytorch.org/docs/stable/generated/torch.max.html) with `input` and `keepdim` argument gets the error but `max()` with `input` and `dim` doesn't get error even though the error message doesn't have such a combination as shown below:

```python
import torch

my_tensor = torch.tensor([0, 1, 2])

torch.max(input=my_tensor, keepdim=True) # Error

torch.max(input=my_tensor, dim=0)
# torch.return_types.max(
# values=tensor(2),
# indices=tensor(2))
```

```
TypeError: max() received an invalid combination of arguments - got (keepdim=bool, input=Tensor, ), but expected one of:
 * (Tensor input, *, Tensor out)
 * (Tensor input, Tensor other, *, Tensor out)
 * (Tensor input, int dim, bool keepdim, *, tuple of Tensors out)
 * (Tensor input, name dim, bool keepdim, *, tuple of Tensors out)
```

And following the error message above, I couldn't use `max()` with `input` and the `name` type of `dim` argument as shown below but the `name` type of `dim` argument is not explained in [the doc](https://pytorch.org/docs/stable/generated/torch.max.html) of `max()`:

```python
import torch

my_tensor = torch.tensor([0, 1, 2])

torch.max(input=my_tensor, dim='zero') # RuntimeError: Name 'zero' not found in Tensor[None].
```

### Versions

```python
import torch

torch.__version__ # 2.2.1+cu121
```

cc @malfet
Repository: deno
Issue: Bug: Express errors when sending big file
Labels: bug,node compat,node:http


## Steps to reproduce

1. Create a new directory and `cd` into it
2. Run `npm init -y && npm i express && deno init`
3. Create file `server.mjs` with these contents:
  ```ts
  import express from "express";
  
  const app = express();
  
  app.get("/", (_req, res) => {
    res.sendFile("home.html", {
      root: import.meta.dirname,
    });
  });

  const port = 3000;
  app.listen(port, () => {
    console.log(`Server listening on port ${port}`);
  });
  ```
4. Create file `home.html` with the contents from here (too big to put as inline snippet) https://gist.github.com/marvinhagemeister/2b1cde3a3527637d12332550ab65eae4 . Alternative any other big (>3MB) html file should work
5. Run `deno run -A server.mjs`
6. Run `wrk -d 10 --latency http://localhost:3000/`


## Error
```sh
error: Uncaught (in promise) TypeError: The stream controller cannot close or enqueue.
    at ReadableStreamDefaultController.enqueue (ext:deno_web/06_streams.js:6057:13)
    at Function.#enqueue (node:http:917:18)
    at ServerResponse.write [as _write] (node:http:949:32)
    at writeOrBuffer (ext:deno_node/_stream.mjs:3947:16)
    at _write (ext:deno_node/_stream.mjs:3892:14)
    at ServerResponse.Writable.write (ext:deno_node/_stream.mjs:3895:14)
    at ReadStream.ondata (ext:deno_node/_stream.mjs:3179:26)
    at ReadStream.emit (ext:deno_node/_stream.mjs:1851:9)
    at addChunk (ext:deno_node/_stream.mjs:2873:16)
    at readableAddChunk (ext:deno_node/_stream.mjs:2852:13)
```

Version: Deno 1.43.5
Repository: tensorflow
Issue: TFLite ConvTranspose3D implemented typo
Labels: type:bug,comp:lite,awaiting PR merge,TF 2.16

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

tf 2.16

### Custom code

Yes

### OS platform and distribution

Ubuntu 22.04

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

in tflite convtranspose3d optimized kernel, pad depth seems typo error
![image](https://github.com/tensorflow/tensorflow/assets/30307463/39bdf859-f236-48f9-b02a-c8231d11cb88)

And also compared with same convtransposed3d with torch interface, tflite have mismatch

### Standalone code to reproduce the issue

```shell
in tflite convtranspose3d optimized kernel, pad depth seems typo error
![image](https://github.com/tensorflow/tensorflow/assets/30307463/39bdf859-f236-48f9-b02a-c8231d11cb88)

here, seems 
const int spatial_dim_1_padding_after =
      params.padding_values.depth + params.padding_values.depth_offset;
```


### Relevant log output

_No response_
Repository: electron
Issue: [Feature Request]: Want to add custom settings for taskbar application preview
Labels: enhancement :sparkles:

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Problem Description

I really hope to add an api to set the thumbnail preview of the taskbar in electron, because many times this function can feedback the current application content status to the user in real time.
![ba15f61a51eab1594c0d183c1d35d4a2](https://github.com/electron/electron/assets/57704238/056e3c4f-cc3f-4dbd-9196-a1505ecb9af7)


### Proposed Solution

I found the DwmSetIconicThumbnail function and WM_SENDICONICTHUMBNAILBITMAP message from the documentation, hoping to be integrated into the electron API

### Alternatives Considered

Because I am not very good at low-level logic, I don't have it at the moment.

### Additional Information

https://learn.microsoft.com/zh-cn/windows/win32/dwm/dwm-sample-customizethumbnail
Repository: pytorch
Issue: Feature request to add the SReLU activation function
Labels: feature,module: nn,triaged,needs research

### 🚀 The feature, motivation and pitch

SReLU showed performance potential in accuracy and speed. Hope you can add pytorch native implemention
Detail: https://github.com/LaurenceLong/SReLU

### Alternatives

_No response_

### Additional context

_No response_

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: opencv
Issue: AttributeError: module 'cv2.dnn' has no attribute 'DictValue'
Labels: bug

### System Information

OpenCV python version: 4.8.0.74
Operating System / Platform: Mac OS X 14.4.1 (23E224)
Python version: 3.10.14


### Detailed description

I attempt to import cv2 in my code and I face the following error:
```
Traceback (most recent call last):
  File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/pydevconsole.py", line 364, in runcode
    coro = func()
  File "<input>", line 1, in <module>
  File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "/opt/anaconda3/envs/TableExtraction/lib/python3.10/site-packages/cv2/__init__.py", line 181, in <module>
    bootstrap()
  File "/opt/anaconda3/envs/TableExtraction/lib/python3.10/site-packages/cv2/__init__.py", line 175, in bootstrap
    if __load_extra_py_code_for_module("cv2", submodule, DEBUG):
  File "/opt/anaconda3/envs/TableExtraction/lib/python3.10/site-packages/cv2/__init__.py", line 28, in __load_extra_py_code_for_module
    py_module = importlib.import_module(module_name)
  File "/opt/anaconda3/envs/TableExtraction/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/opt/anaconda3/envs/TableExtraction/lib/python3.10/site-packages/cv2/typing/__init__.py", line 168, in <module>
    LayerId = cv2.dnn.DictValue
AttributeError: module 'cv2.dnn' has no attribute 'DictValue'
```
I have attempted to reinstall cv2 in a different conda environment to no avail. 

### Steps to reproduce

Literally, just:
```
import cv2
```

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: stable-diffusion-webui
Issue: [Bug]: PuLID ControNet model VRAM Leak
Labels: bug-report

### Checklist

- [X] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [X] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [X] The issue has been reported before but has not been fixed yet

### What happened?

This is a disscution issue. beacase I just suspect there's something wrong with the webui.

the new IPAdapter model - PuLID has vram leak problem. every time after I change a different refference face image to generate. Vram increased by 1.3G. After several times runs, OOM occurred.

reproduction in 3060-12G/3090-24G , window/linux ,v1.6 ~ v1.9.3, but official Diffusers demo and comfyui extension are okay.

![微信截图_20240519225248](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/112338987/1ff7ee6f-2e09-4905-affa-c84c8ea7c7e7)
I just suspect there's something wrong with Vram management in Webui. Hopefully somebody can figure out it.

**old isssue**
https://github.com/Mikubill/sd-webui-controlnet/issues/2905
**PuLID feature**
https://github.com/Mikubill/sd-webui-controlnet/discussions/2841

### Steps to reproduce the problem


1.start webui, prompt "a girl", enable ContrlNet(IP-Adapter PuLID model), upload a reference img  -  vram: 3.5/12GB
2. make a generation. - vram: 4.8/12GB
3. change a different referece image(not same as last), make another generation -    vram: 6.2/12GB
4. change a different referece image(not same as  all last), make another generation -    vram: 7.5/12GB
5. change a different referece image(not same as all last), make another generation -    **OOM occurred - vram: 12/12GB** 



### What should have happened?

every time generate finished, Vram drop into stable status value ,not grow up

### What browsers do you use to access the UI ?

Google Chrome

### Sysinfo

bash webui.sh -f  --api  --no-half-vae --xformers --medvram --disable-nan-check

### Console logs

```Shell
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 26.00 MiB (GPU 0; 23.69 GiB total capacity; 21.85 GiB already allocated; 26.94 MiB free; 23.32 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
```


### Additional information

_No response_
Repository: react
Issue: [DevTools Bug]: Icon bug in Edge DevTools
Labels: Type: Bug,Status: Unconfirmed,Component: Developer Tools

### Website or app

https://www.facebook.com/

### Repro steps

1. Have React DevTools extension installed (Version `5.2.0 from revision 1717ab0171 on 5/8/2024`)
2. Open page with React in Edge (Version `125.0.2535.51 (Official build) (64-bit)`)
3. Open Edge DevTools
4. See these weird gray blobs next to the actual tab icon:

![image](https://github.com/facebook/react/assets/142162/909705d4-ccc8-42d4-9b06-5a9a94233b38)


### How often does this bug happen?

Every time

### DevTools package (automated)

_No response_

### DevTools version (automated)

_No response_

### Error message (automated)

_No response_

### Error call stack (automated)

_No response_

### Error component stack (automated)

_No response_

### GitHub query string (automated)

_No response_
Repository: ui
Issue: [bug]: slect lags when use many options
Labels: bug

### Describe the bug

i've used next js 13 and fetched google fonts from api and used select, application starts lagging as soon as select is opend

### Affected component/components

selec

### How to reproduce

1. get google fonts from api
2. and use in select

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
chrome browser
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: vscode
Issue: [aah] REFUSES to accept new listeners because it exceeded its threshold by far (<REDACTED: user-file-path>). HINT: Stack shows most frequent listener (352-times)
Labels: important,error-telemetry

```javascript
Error
at c.create in src/vs/base/common/event.ts:900:15
at v.q in src/vs/base/common/event.ts:1095:34
at j.kb in src/vs/workbench/contrib/terminal/browser/terminalProcessManager.ts:448:52
at async j.lb in src/vs/workbench/contrib/terminal/browser/terminalProcessManager.ts:487:15
at async j.createProcess in src/vs/workbench/contrib/terminal/browser/terminalProcessManager.ts:333:19
at async Ie.reuseTerminal in src/vs/workbench/contrib/terminal/browser/terminalInstance.ts:1723:3
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=a48f464a3e01aad384703ec964018299b14bb7cf&bH=efc9c74d-57d2-d1c6-56bc-c1fe474e1e82)
Repository: vscode
Issue: Safari 14 no longer able to load vscode.dev, affecting shipped WebKit of macOS 11 and iOS 15
Labels: bug,web,safari

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.89.1
- OS Version: macOS 11.2.3

Steps to Reproduce:

1. Open `vscode.dev` in Safari
2. Get blank webpage

macOS 11.2.3, Safari 14.0.3
<img width="1264" alt="image" src="https://github.com/microsoft/vscode/assets/31795847/240adac0-5389-408e-a0d9-62a88a0fe1ca">

iOS 15.1.1, Safari 14.1
![IMG_C731095B502F-1](https://github.com/microsoft/vscode/assets/31795847/0b90d16a-66be-4c81-94ac-6414a1edc793)
Repository: excalidraw
Issue: rewrite `pointerDownState.originalElements`
Labels: refactor

`pointerDownState.originalElements` is unreliable (sometimes the elements we operate on aren't set due to a race condition I can't reproduce, but we get errors for in Sentry), and inefficient (we clone every element in the scene every pointerdown).

We should make the `originalElements` into a cache that's populated with the cloned element on first `get()`.
Repository: tauri
Issue: [bug] [macOS] file drop on titlebar
Labels: type: bug,platform: macOS,status: needs triage

### Describe the bug

I use "fileDropEnabled": false, since i need to drag and drop files in my application, i use window.addEventListener('dragover', (e) => e.preventDefault(), false)
to prevent the file from opening in a new window when dragging, this works well for Windows, it also works for Mac OS, but Mac OS takes the file into the window decoration which makes preventDefault() useless and the file opens inside the application.
![Telegram_Qm8t2LvNgB](https://github.com/tauri-apps/tauri/assets/58089382/e7238cd0-9755-4040-8cdf-55a3f32e3231)


### Reproduction

_No response_

### Expected behavior

When dragging a file into a window decoration, the file should not open inside the application.

### Full `tauri info` output

```text
.
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: react
Issue: [DevTools Bug]: Getting Component Tree from my code
Labels: Type: Bug,Status: Unconfirmed,Component: Developer Tools

### Website or app

https://github.com/facebook/react/issues/22540

### Repro steps

Greetings,
I am trying to get the component tree ( that react dev-tools show in the extension ) in my own code, and I want to send it to backend API server using an HTTP POST request.
Any idea on how I can achieve this?
I looked at using `__REACT_DEVTOOLS_GLOBAL_HOOK__` but no luck yet.

Thank you

### How often does this bug happen?

Every time

### DevTools package (automated)

_No response_

### DevTools version (automated)

_No response_

### Error message (automated)

_No response_

### Error call stack (automated)

_No response_

### Error component stack (automated)

_No response_

### GitHub query string (automated)

_No response_
Repository: PowerToys
Issue: Environment Variables, allow multiple profiles (or sets of env vars) to be applied at once
Labels: Needs-Triage

### Description of the new feature / enhancement

I don't need to switch between different sets of env vars, I just need to apply this set, and maybe this set, and also maybe this set, based on activity. Having profiles that only allows one to be active at a time is a limitation in this regard, they should all just be independent of each other. Or some other concept can be used, where sets of env vars can be applied, without turning off the other sets. 

### Scenario when this would be used?

I don't need to switch between different sets of env vars, I just need to apply this set, and maybe this set, and also maybe this set, based on activity.

### Supporting information

It's more versatile this way. Think 3-4 sets of env vars that are applied on/off independent of each other. That's a lot of different profile combinations to create. And I honestly think the implementation of disallowing two profiles to be active at the same time is more complex than just skipping it. But if that's also a use case necessary to support, sure, but at least have this as an option.
Repository: PowerToys
Issue: Add macro recorder to record mouse or keyboard steps
Labels: Needs-Triage

### Description of the new feature / enhancement

To produce multiple steps from mouse and keyboard with only one keyboard shortcut button

### Scenario when this would be used?

When in firme where developers don't wont to make shortcut to some unnecessary steps you can record steps and make shortcut to one button

### Supporting information

_No response_
Repository: ollama
Issue: Plugins
Labels: feature request

Hello, are "tools" and "tool_choice" API supported, and if not, is there any roadmap for them?
Repository: PowerToys
Issue: [Major] [Frequent] Black/white rectangle appearing on desktop upon startup
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.80.1

### Installation method

Microsoft Store

### Running as admin

None

### Area(s) with issue?

ColorPicker

### Steps to reproduce

I have set PowerToys to run at startup, and often when I start my PC, a black rectangle appears on the desktop that does not disappear. After some digging, I discovered that the Color Picker is causing this issue. I also pinned it on quick access btw, if that helps. 
[PowerToysReport_2024-05-21-19-31-48.zip](https://github.com/microsoft/PowerToys/files/15389420/PowerToysReport_2024-05-21-19-31-48.zip)


### ✔️ Expected Behavior

_No response_

### ❌ Actual Behavior

_No response_

### Other Software

_No response_