AppiumTestDistribution / appium-device-farm

This is an Appium 2.0 plugin designed to manage and create driver sessions on available devices.
https://devicefarm.org
Other
341 stars 103 forks source link

Error: @prisma/client did not initialize yet. Please run "prisma generate" and try to import it again #1453

Open dipakkumar1225 opened 3 days ago

dipakkumar1225 commented 3 days ago

Getting Could not load plugin 'device-farm'. Could not load plugin 'device-farm', so it will not be available. Error in loading the plugin was: @prisma/client did not initialize yet. Please run "prisma generate" and try to import it again. [Appium] Error: @prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.

appium server -ka 800 --use-plugins=device-farm --config ./config/server-config.json -pa /wd/hub

config:

{
  "server": {
    "port": 4723,
    "plugin": {
      "device-farm": {
        "platform": "both",
        "skipChromeDownload": true,
        "androidDeviceType": "real",
        "deviceAvailabilityTimeoutMs": 300000,
        "deviceAvailabilityQueryIntervalMs": 10000,
        "sendNodeDevicesToHubIntervalMs": 30000,
        "checkStaleDevicesIntervalMs": 30000,
        "checkBlockedDevicesIntervalMs": 30000,
        "newCommandTimeoutSec": 60,
        "iosDeviceType": "simulated",
        "liveStreaming": true
      }
    }
  }
}

Please find the log:

https://gist.github.com/dipakkumar1225/47f9ed06b332d6c512ddc8c76be33419

Environment

  1. Appium version (or git revision) that exhibits the issue:
  2. Last Appium version that did not exhibit the issue (if applicable):
  3. Node.js version (unless using Appium.app|exe): 22.11.0
  4. Npm or Yarn package manager: npm
  5. Mobile platform/version under test: Android
  6. Real device or emulator/simulator: Real Device
  7. Appium CLI or Appium.app|exe: Cli
  8. Device Farm Version : 9.4.6
saikrishna321 commented 3 days ago

@dipakkumar1225 Can you try this https://github.com/AppiumTestDistribution/appium-device-farm/issues/1438#issuecomment-2461388144