Comments (12)
Hey @bannarisoftwares,
Thanks for reporting this. Could you post your node
and npm
versions? I'm going to try my best to reproduce your circumstances since it's currently working on my machine, and then try to find a fix.
from react-daisyui.
Removed this message because I misread something 😆
from react-daisyui.
Thanks @bannarisoftwares. I will take a look!
from react-daisyui.
@bannarisoftwares I just tested with Node 12.13.0 and got the same error as you. For plop to work please upgrade to at least Node 14 or above. I upgraded from 12.13.0 to 14.19.1 and was able to generate a component!
Working great after updated to v14... Thank you for the support @benjitrosch
from react-daisyui.
Sorry for late reply... Node version = v12.13.0,
npm = 8.6.0
from react-daisyui.
@bannarisoftwares I just re-read this and I believe I understand the issue.
The
generate
command is intended for internal use to contribute to the react-daisyui codebase. I do not believe it will work outside that context. It seems you are trying to use it from your app, which has react-daisyui installed, to create a new component. However, that is not the intended use forplop
in this project. To create components with react-daisyui, you should import the library from the top of your jsx/tsx file and access specific components that react-daisyui provides.
Hi @benjitrosch , I cloned this repo react-daisyui, and excecute this npm run generate component NewComponent
cmd from root dir. of this folder... during that time... i am getting this error. am i wrong?
from react-daisyui.
My mistake, I misread your initial post. You are using it correctly!
I will investigate further based on your node version.
from react-daisyui.
Sure @benjitrosch , Thank you for the support...
from react-daisyui.
@bannarisoftwares I just tested with Node 12.13.0 and got the same error as you. For plop to work please upgrade to at least Node 14 or above. I upgraded from 12.13.0 to 14.19.1 and was able to generate a component!
from react-daisyui.
sure @benjitrosch .. I will try and let you know soon
from react-daisyui.
Very glad to hear it worked, always happy to help!
I used a tool called nvm (https://github.com/nvm-sh/nvm) which lets me install and use several different versions of Node at once. I find it very helpful for this sort of thing and always recommend it to people!
from react-daisyui.
Very glad to hear it worked, always happy to help!
I used a tool called nvm (https://github.com/nvm-sh/nvm) which lets me install and use several different versions of Node at once. I find it very helpful for this sort of thing and always recommend it to people!
Got it.... Thank you..
from react-daisyui.
Related Issues (20)
- [4.0.1]: `Join` component not exported by the module HOT 1
- [4.0.1]: New Modal causes reflow issues HOT 3
- [4.0.2]: `Loading` not exported HOT 1
- Add `cursor: default` to the Modal backdrop button HOT 3
- ModalLegacyProps type is not exported HOT 3
- Menu dropdown doesn't close after click? HOT 2
- Type Errors if Select.Option are rendered both statically and dynamically HOT 1
- Can't create form inside Modal HOT 2
- New Modal with useRef hook generates a warning/error in console HOT 1
- Swap.onClick fires twice HOT 5
- add start and end icon to Input component
- Tooltip positioning end of screen
- Canonical react-daisyui example HOT 1
- Server-side component for Next.js
- Range component UI issues HOT 3
- Feat: Debounce option for `Input` component HOT 1
- Vite + React + TS HOT 1
- Docs don't reflect current version? HOT 2
- dropdown goes offscreen
- How do I get a multi range slider? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-daisyui.