styles.css - Error: (0 , _identifier.getUndoPath) is not a function

Viewed 587

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!

2 Answers

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

  • Delete package-lock.json and node_modules
  • Install again using npm install

This is a known issue. In the meantime, downgrade build-angular by running:

npm install @angular-devkit/build-angular@~12.1.0 --save-dev
Related