# Can't properly load "ZigbeeDriver" to work in prod

**URL:** <https://community.homey.app/t/cant-properly-load-zigbeedriver-to-work-in-prod/134380>\
**Category:** Developers\
**Created:** [April 9, 2025, 8:00pm UTC](https://community.homey.app/t/cant-properly-load-zigbeedriver-to-work-in-prod/134380 "2025-04-09T20:00:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pbmco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pbmco/32/77880_2.png) [@Pbmco](https://community.homey.app/u/Pbmco)\
**Post date:** [April 9, 2025, 8:00pm UTC](https://community.homey.app/t/cant-properly-load-zigbeedriver-to-work-in-prod/134380/1 "2025-04-09T20:00:14Z")

</div>

Beginner here, sorry if question is basic 😇  
Developing an app to support a zigbee window covering modules (brand: Yokis). Went through everything, and it works in the testing environnement (homey app run) but not in prod (either homey app install or homey app run --remote).  
Homey Pro 2023. Working from a Mac.

Here’s the catch, it depends also on how I reference the ZigbeeDriver at the top of my device.js

- With `const { ZigBeeDevice } = require("homey-zigbeedriver");`  
(which should be the proper way to do it according to the API docs)  
DEV = ⛔ `[err] [ManagerDrivers] [Driver:yokis-blinds] Error Initializing Device: ReferenceError: ZigbeeDevice is not defined`  
PROD = ⛔ `[err] [ManagerDrivers] [Driver:yokis-blinds] Error Initializing Device: ReferenceError: ZigbeeDevice is not defined`

- With `const ZigbeeDevice = require('homey-zigbeedriver/lib/ZigbeeDevice');`  
DEV = ✅  
PROD = ⛔ `[err] [ManagerDrivers] [Driver:yokis-blinds] Error Initializing Device: Error: Cannot find module 'homey-zigbeedriver/lib/ZigbeeDevice'`

I’ve gone through all the hoops I thought of (npm install, checking dependencies list in package.json, removing & reinstalling with `npm install --save homey-zigbeedriver zigbee-clusters`. The homey-zigbeedriver folder is present in the node\_modules build folders of course.

Let me insist that with homey app run and declaring with `const ZigbeeDevice = require('homey-zigbeedriver/lib/ZigbeeDevice');`, my app and my device work perfectly (I can send commands, it responds…).

Any idea what I’m doing wrong?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Pbmco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pbmco/32/77880_2.png) [@Pbmco](https://community.homey.app/u/Pbmco)\
**Post date:** [April 10, 2025, 6:50am UTC](https://community.homey.app/t/cant-properly-load-zigbeedriver-to-work-in-prod/134380/2 "2025-04-10T06:50:22Z")

</div>

Hi, solved the problem myself, and it was a basic mistake indeed.  
I was using `class YokisBlindsDevice extends ZigbeeDevice {` instead of `class YokisBlindsDevice extends ZigBeeDevice {` (capital “Bee”). So a basic capitalisation mistake  
Sorry for the unnecessary post.
