I am trying to setup an Angular app using Nx CLI. I have used the command
npx create-nx-workspace --preset=angular
A workspace gets created. When I run that using
npx nx serve --port 4300
I end up getting an error in my cmd
styles.css - Error: (0 , _identifier.getUndoPath) is not a function
Does anybody know how to resolve this issue and why is this happening? Any help would be appreciated. Thanks!
This seems to be a temporary bug, there is an issue about this in Github, the developers are aware of this and are trying to fix it. You might want to check it for some quick hotfixes. Github Issue Here
Here is what a collaborator suggests
package-lock.json and node_modulesnpm installThis is a known issue. In the meantime, downgrade build-angular by running:
npm install @angular-devkit/build-angular@~12.1.0 --save-dev