Could not find project "@ngneat/tailwind" when running in an nx workspace
See original GitHub issueI’m submitting a…
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x ] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:
Current behavior
Running the add schematics commands results in the following errors when used on a newly-created NX workspace.
-
nx add @ngneat/tailwind
= Could not find project “@ngneat/tailwind” -
ng add @ngneat/tailwind
= The add command requires to be run in an Angular project, but a project definition could not be found.
For clarification and as pointed out below, this does not work in an NX workspace using the NX cli.
Expected behavior
TailwindCSS is added correctly.
Minimal reproduction of the problem with instructions
-
Create new NX latest workspace, empty and CLI used is NX:
npx create-nx-workspace@latest
-
Add new Angular app:
nx g @nrwl/angular:app sample-app --routing --style=scss
-
Add @ngneat/tailwind:
nx add @ngneat/tailwind
What is the motivation / use case for changing the behavior?
I want to use TailwindCSS for a collection apps in an NX workspace.
Environment
Angular version: 10.0.0
Browser:
- [] Chrome (desktop) version XX
- [] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [x] Edge version XX
For Tooling issues:
- Node version: 12.16.1
- Platform: Windows
Others:
By the way, this schematics and the one before it works in an Angular workspace. Thank you for the great work.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Thank you for taking a look, @nartc. I understand where you’re coming from and it is fine by me. In the meantime, I got by, by manually adding the changes to the nx project, works as intended. 👍
Closing. Might revisit