We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
👋
I'm trying to use the CDK plugin, and it generated and deployed a CDK stack just fine until I added a dependency from /libs.
/libs
For some reason, it is not able to find the dependency 👇
> nx deploy my-api > nx run my-api:deploy Executing command: cdk deploy Cannot find module '@my-org/cdk-utils' Require stack: - /my-api/src/main.ts - -
import * as cdk from "@aws-cdk/core"; import { getResourcePrefix } from "@my-org/cdk-utils"; import { AppStack } from "./stacks/app-stack"; const app = new cdk.App(); new AppStack(app, `${getResourcePrefix()}guides-api`);
nx test my-api still works fine - also with /libs dependencies. It seems @nrwl/jest:jest is handling these dependencies.
nx test my-api
@nrwl/jest:jest
Is there any extra setup that needs to be added to work with /libs deps?
The text was updated successfully, but these errors were encountered:
hm
npm install --save-dev tsconfig-paths
then adding -r tsconfig-paths/register:
-r tsconfig-paths/register
"app": "npx ts-node -r tsconfig-paths/register ./src/main.ts",
Fixed the problem.
Thanks to aws/jsii#865 (comment)
Sorry, something went wrong.
No branches or pull requests
👋
I'm trying to use the CDK plugin, and it generated and deployed a CDK stack just fine until I added a dependency from
/libs
.For some reason, it is not able to find the dependency 👇
nx test my-api
still works fine - also with/libs
dependencies. It seems@nrwl/jest:jest
is handling these dependencies.Is there any extra setup that needs to be added to work with
/libs
deps?The text was updated successfully, but these errors were encountered: