tailwind icon indicating copy to clipboard operation
tailwind copied to clipboard

nx-setup not working

Open alois-reinstadler opened this issue 3 years ago • 4 comments

I'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

nx generate @ngneat/tailwind:nx-setup doesn't work. The option "Would you like to enable dark mode?" fails with the error

Property 'darkMode' does not match the schema. 'none' should be one of [object Object],[object Object],[object 
Object].

Environment

angular/[email protected]
nrwl/[email protected]
ngneat/[email protected]

For Tooling issues:

  • Node version: 14.15.4
  • Platform: Windows

alois-reinstadler avatar Apr 26 '21 18:04 alois-reinstadler

You can try this workaround meanwhile: https://github.com/ngneat/tailwind/issues/94#issuecomment-821761553

atmosuwiryo avatar May 02 '21 22:05 atmosuwiryo

workaround did not work, i specified all parameters/arguments in cli and error still appears

kingjordan avatar May 26 '21 22:05 kingjordan

Same here. image

I tried the workaround as well, didn't work too. image

I am working with a fresh project setup (30 minutes old). Any other ideas?

lukasfehling avatar Jun 08 '21 22:06 lukasfehling

Same here. image

I tried the workaround as well, didn't work too. image

I am working with a fresh project setup (30 minutes old). Any other ideas?

Hello,

I find that specifying the complete set of options works:

$ nx generate @ngneat/tailwind:nx-setup --project=<your-main-app-name-here> --enableJit=true --darkMode=class --plugins=aspect-ratio,forms,line-clamp,typography

Note: The nx CLI was used in the command above.

Hope it helps.

lhargil avatar Jun 27 '21 02:06 lhargil