Hello everyone,
I recently upgraded the Ceramic and ComposeDB related libraries in my project from older versions to newer ones and encountered a destructuring error that I’m hoping to get some help and advice on.
Original Versions:
- “@composedb/client”: “0.6.0”
- “@composedb/types”: “^0.6.0”
- “@ceramicnetwork/http-client”: “4.0.0”
Upgraded Versions:
- “@composedb/client”: “0.7.1”
- “@composedb/types”: “^0.7.1”
- “@ceramicnetwork/http-client”: “5.8.0”
Error Message:
Uncaught TypeError: Cannot destructure property ‘OTLPMetricExporter’ of ‘opentelemetry_exporter_metrics_otlp_http__WEBPACK_IMPORTED_MODULE_0 _.default’ as it is undefined.
This error appears to be related to the way the @opentelemetry/exporter-metrics-otlp-http
module is imported. Despite reviewing the code and dependencies, I am still unsure why this error has arisen following the upgrade.
Development Environment:
- Node.js version: v20.10.0
- Next.js version: 14.2.3
Has anyone encountered a similar issue or can offer any insights or solutions? Any advice or guidance would be greatly appreciated!
Thank you for your help!