-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Cannot find module '@cdktf/provider-aws' #244
Comments
Now getting the error |
I think the root cause might be this bug: npm/cli#3466 When I install Maybe "manually" bundling the SDK using a tool like esbuild is needed after all. Another option could be to manually bundle dependencies inside the SDK package |
Oh, huh - I didn't see that coming. So, trying to esbuild the SDK introduces some new problems, because right now the SDK does some hacky file path mangling in order to reference inflight functions. See here: https://github.com/monadahq/winglang/blob/e105b2d3b7f91a3eec9d07aa47662c7550b06220/libs/wingsdk/src/core/inflight.ts#L304-L316 I suspect that's actually a bit of a code smell though, so it's probably worth fixing. edit: full logs for context:
|
Fixes #244 Co-authored-by: Cristian Pallarés <[email protected]>
I ran
wing compile hello.w
using the latest@monadahq/wing
with:And got
It looks like the issue is
@monadahq/wing
takes@monadahq/wingsdk
as a bundled dependency, but@monadahq/wingsdk
has several peer dependencies so they aren't automatically bundled.The text was updated successfully, but these errors were encountered: