How to create a lib with…

less than 1 minute read

How to create a lib with a scoped name? When running: nx g @nrwl/react:lib @scope-auth

Responses:

hey Fernando! try without the @ , and use the --directory to define library scopes:

nx g @nrwl/react:lib login --directory=auth

a new login lib will be created under the auth directory, and can be imported with import { someAuthFn } from "@my-org/auth/login"

Updated: