Skip to content

Stencil: (0 , project_name_and_root_utils_1.ensureProjectName) is not a function #1176

Description

@valeriocomo

Describe the bug
We cannot generate a Stencil library. The problem is either replicable in an Nx TypeScript Setup monorepo (--preset=ts) and in a Nx App Setup monorepo (--preset=apps).

Image

I'm using version Nx 20.6.2.

To Reproduce
Steps to reproduce the behavior:

  1. Start a new Nx workspace using the flag --preset=apps
  2. Add @nxext/stencil dependency
  3. Generate a Stencil library nx g @nxext/stencil:lib packages/ui-kit --name ui-kit --style css --buildable --dry-run --verbose

In a Typescript setup monorepo, I have to use NX_IGNORE_UNSUPPORTED_TS_SETUP=true env variable for step 3, as stated here, in order to reproduce the bug. Otherwise, I get the problem reported here.

Expected behavior
The library must be generated as expected

Additional context
The library is not generated as expected

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions