Stream has no exports
See original GitHub issuetsc fails to compile, StreamEventSource, StreamEventSourceProps missing from aws-lambda-event-sources streams file.
Reproduction Steps
npm install @aws-cdk/core
npm install @aws-cdk/aws-lambda-event-sources
tsc
Error Log
node_modules/@aws-cdk/aws-lambda-event-sources/lib/dynamodb.d.ts:3:10 - error TS2305: Module '"./stream"' has no exported member 'StreamEventSource'.
3 import { StreamEventSource, StreamEventSourceProps } from './stream';
~~~~~~~~~~~~~~~~~
node_modules/@aws-cdk/aws-lambda-event-sources/lib/dynamodb.d.ts:3:29 - error TS2305: Module '"./stream"' has no exported member 'StreamEventSourceProps'.
3 import { StreamEventSource, StreamEventSourceProps } from './stream';
~~~~~~~~~~~~~~~~~~~~~~
node_modules/@aws-cdk/aws-lambda-event-sources/lib/kinesis.d.ts:3:10 - error TS2305: Module '"./stream"' has no exported member 'StreamEventSource'.
3 import { StreamEventSource, StreamEventSourceProps } from './stream';
~~~~~~~~~~~~~~~~~
node_modules/@aws-cdk/aws-lambda-event-sources/lib/kinesis.d.ts:3:29 - error TS2305: Module '"./stream"' has no exported member 'StreamEventSourceProps'.
3 import { StreamEventSource, StreamEventSourceProps } from './stream';
~~~~~~~~~~~~~~~~~~~~~~
Environment
- **CLI Version :10.
- **Framework Version: 10.1.
- **OS :MacOS
- **Language : TypeScript
Other
Digging around the node_modules/@aws-cdk/aws-lambda-event-sources/lib/stream.d.ts file shows no exports
This is 🐛 Bug Report
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:13 (11 by maintainers)
Top Results From Across the Web
Stream in NodeJS - javascript - Stack Overflow
I want this behavior to exports the Readable Stream and allow another module to read them. To do this, I have write a...
Read more >Resolve the "No Export named XYZ found" error in ...
I receive the "No Export named XYZ found" error in AWS CloudFormation when I use Fn::ImportValue in my stack.
Read more >A stream's role in watershed nutrient export - PNAS
Despite the knowledge that streams can be biogeochemical hot spots, stream element processing has not been experimentally linked to watershed elemental export.
Read more >[GA4] BigQuery Export - Analytics Help - Google Support
Exporting Data from Google Analytics 4 Properties to BigQuery BigQuery is a ... Streaming export is a best-effort operation and may not include...
Read more >Export live-streaming files with Final Cut Pro - Apple Support
Changing the title does not change the project or clip name, which is the name used for the exported file. At the bottom...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We also faced the same issue even when not using either of the Kinesis and Dynamo streams but only SqsEventSource.
Looking at the change log of 1.11.0, the merged work of https://github.com/aws/aws-cdk/pull/4260 has removed redundant code in KinesisEventSource and DynamoEventSource into common StreamEventSource, and that looks like causing it.
Here is an immediate fix in the meantime, using patch-package:
You’ll need to add
"postinstall": "patch-package"
to yourpackage.json
scripts field to ensure that the patch will run after each installation.Hope that helps!