Git Product home page Git Product logo

Comments (12)

benjitrosch avatar benjitrosch commented on May 23, 2024 1

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.

benjitrosch avatar benjitrosch commented on May 23, 2024 1
Removed this message because I misread something 😆

from react-daisyui.

benjitrosch avatar benjitrosch commented on May 23, 2024 1

Thanks @bannarisoftwares. I will take a look!

from react-daisyui.

bannarisoftwares avatar bannarisoftwares commented on May 23, 2024 1

@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.

bannarisoftwares avatar bannarisoftwares commented on May 23, 2024

Sorry for late reply... Node version = v12.13.0,
npm = 8.6.0

from react-daisyui.

bannarisoftwares avatar bannarisoftwares commented on May 23, 2024

@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 for plop 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.

benjitrosch avatar benjitrosch commented on May 23, 2024

My mistake, I misread your initial post. You are using it correctly!

I will investigate further based on your node version.

from react-daisyui.

bannarisoftwares avatar bannarisoftwares commented on May 23, 2024

Sure @benjitrosch , Thank you for the support...

from react-daisyui.

benjitrosch avatar benjitrosch commented on May 23, 2024

@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.

bannarisoftwares avatar bannarisoftwares commented on May 23, 2024

sure @benjitrosch .. I will try and let you know soon

from react-daisyui.

benjitrosch avatar benjitrosch commented on May 23, 2024

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.

bannarisoftwares avatar bannarisoftwares commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.