I was installing the avatar component and after running nextui add avatar, waiting for the install to be completed and runing npm run dev, I was getting the following error:
While tracing the error checking my css related files, I noticed that the CLI had modified my tailwind.config.js file, removing some of the string quotation marks. More preciseley, the quotation marks inside the tailwind plugins array.
tailwind.config.js before executing the nextcli command:
tailwind.config.js after executing the nextcli command:
After restoring the missing quotation marks, saving the file and re-running npm run dev, everithing worked as expected 🎉
Here is a full copy of my tailwind.config.js file:
NextUI CLI Version
0.1.5
Describe the bug
I was installing the avatar component and after running
nextui add avatar
, waiting for the install to be completed and runingnpm run dev
, I was getting the following error:While tracing the error checking my css related files, I noticed that the CLI had modified my
tailwind.config.js
file, removing some of the string quotation marks. More preciseley, the quotation marks inside the tailwind plugins array.tailwind.config.js
before executing thenextcli
command:tailwind.config.js
after executing thenextcli
command:npm run dev
, everithing worked as expected 🎉Here is a full copy of my
tailwind.config.js
file:Steps to Reproduce the Bug or Issue
tailwind.config.js
file.nextui add avatar
.npm run dev
.Expected behavior
It should not remove quotation marks.
Screenshots or Videos
No response
Operating System Version
Windows