You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: reflect aws-cdk-lib and CLI split in the contribution guide (#34633)
Remove references to `cdk --version` check since this doesn't work now after CLI split from aws-cdk.
Closes#34610
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
return new TSError(diagnosticText, diagnosticCodes, diagnostics);
1401
+
^
1402
+
TSError: ⨯ Unable to compile TypeScript:
1403
+
1404
+
aws-cdk/packages/aws-cdk-lib/aws-events-targets/lib/aws-api.ts:7:27 - error TS2732: Cannot find module '../../custom-resources/lib/helpers-internal/sdk-v3-metadata.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.
1405
+
1406
+
7 import * as metadata from '../../custom-resources/lib/helpers-internal/sdk-v3-metadata.json';
1402
1407
```
1403
1408
1404
-
However, thiswillbetimeconsuming. Inthissectionwe'll describe some common issues you may encounter and some more
1405
-
targetedcommandsyoucanruntoresolveyourissue.
1409
+
ThisismostprobablycausedbythefactthatyourCDKappisusing`--prefer-ts-exts`option (whichisthe [defaultinnewCDKTS-basedapps]([url](https://github.com/aws/aws-cdk/issues/7475))). To fix this, try one of the following:
1410
+
-Don't compile aws-cdk-lib. You can do this by removing `--prefer-ts-exts` from your app command in `cdk.json` - this means you will have to run a build in the lib repo every time you make a change (or use `npm run watch / yarn watch`).
1411
+
-Updateyour`tsconfig.json`. Inthiscaseit's going to be adding `"resolveJsonModule": true` as suggested by the error to the `"compilerOptions"` section. If you change the test app, different or more errors might come up that will have a similar resolution.
1412
+
1406
1413
1407
1414
#### ThecompileristhrowingerrorsonfilesthatIrenamed/it's running old tests that I meant to remove/code coverage is low and I didn'tchangeanything.
0 commit comments