aws / aws-xray-sdk-node

The official AWS X-Ray SDK for Node.js.
Apache License 2.0
267 stars 156 forks source link

SegmentEmitter module missing a declaration file. #576

Closed ashwini-vaddadi closed 1 year ago

ashwini-vaddadi commented 1 year ago

I keep getting code: 'MODULE_NOT_FOUND' when trying to build in a container with NODE version 14.19.1. I am using the "aws-xray-sdk-core": "^3.2.0" package. On highlighting the warning on VS Code IDE I see the following:

Could not find a declaration file for module 'aws-xray-sdk-core/lib/segment_emitter'. '/node_modules/aws-xray-sdk-core/lib/segment_emitter.js' implicitly has an 'any' type. If the 'aws-xray-sdk-core' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module 'aws-xray-sdk-core/lib/segment_emitter';

carolabadeer commented 1 year ago

Closing as fix has been merged in PR above