Koenkk / zigbee-herdsman-converters

Collection of device converters to be used with zigbee-herdsman
MIT License
885 stars 2.95k forks source link

The compiled zcl folder is missing. #7578

Open liubotongs opened 4 months ago

liubotongs commented 4 months ago

zigbee-herdsman-converters@19.45.0 build src/devices/sonoff.ts:2:32 - error TS2307: Cannot find module 'zigbee-herdsman/dist/zcl/definition/buffaloZclDataType' or its corresponding type declarations. I observed that... The /zigbee-herdsman-converters/node_modules/zigbee-herdsman/dist path is missing the zcl folder, resulting in the above compilation error.

LaurentChardin commented 4 months ago

import {BuffaloZclDataType} from 'zigbee-herdsman/dist/zspec/zcl/definition/enums'; It should be fixed in the latest version: 19.49.0 as there was some refactoring some time ago from the ZCL folder.

You are basically compiling an old codebase of ZHC with a newer version of ZH. You might want to update your dependencies (and your codebase)