Add Angular Material to Nx Workspace

Discussão em 'Angular' iniciado por vicatcu, Setembro 25, 2024.

  1. vicatcu

    vicatcu Guest

    I'm wanting to add angular-material to my nx-workspace.

    The angular material docs (https://material.angular.io/guide/getting-started) say I should run ng add @angular/material.

    I've tried that in the root of my nx workspace, as well as in an application folder I want to add it to, as well as in a lib project folder I want to add it to. In all cases I get the message The add command requires to be run in an Angular project, but a project definition could not be found.

    The Angular Material docs used to include instructions on how to add dependencies manually, but I can't find that anymore. Does anyone know how to add it to projects in an Nx workspace these days?

    Continue reading...

Compartilhe esta Página