usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
21.54k stars 1.01k forks source link

[Issue] Whitelisting non-existing modules crashes the CLI #2469

Open bpoulaindev opened 1 week ago

bpoulaindev commented 1 week ago

I have checked the following:

Describe the bug

Whitelisting a module through bruno.json config crashes the CLI but seems to work in the desktop client. This makes dependencies hard to manage if you have to sync package.json and bruno.json.

.bru file to reproduce the bug

content of bruno.json config :

{
  "version": "1",
  "name": "basic-collection",
  "type": "collection",
  "ignore": [
    "node_modules",
    ".git"
  ],
  "scripts": {
    "moduleWhitelist": ["thisDoesNotExist"],
    "filesystemAccess": {
      "allow": true
    }
  }
}

Screenshots/Live demo link

Capture d’écran 2024-06-17 à 14 45 51