Skip to content

Cannot find module a dependency under libs#9

Description

@phstc

馃憢

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 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.

Is there any extra setup that needs to be added to work with /libs deps?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions