Git Product home page Git Product logo

Comments (3)

bobwhitelock avatar bobwhitelock commented on June 9, 2024

I believe I've run into a similar issue. Have you run redux init yet? What's the contents of .reduxrc in your project directory?

I encountered a similar error when I hit ctrl-C after running redux init, and then .reduxrc was created containing just undefined, which then causes redux g to fail.

from redux-cli.

woniesong92 avatar woniesong92 commented on June 9, 2024

Ah, so this is what happened. After a fresh install generators failed with a different error message:

$ redux g smart hello
2practice/blueprints/smart/index.js:2
  description () {
              ^
SyntaxError: Unexpected token (
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Function.load (/usr/local/lib/node_modules/redux-cli/lib/models/blueprint.js:330:33)
    at Function.lookup (/usr/local/lib/node_modules/redux-cli/lib/models/blueprint.js:311:28)
    at _class.lookupBlueprint (/usr/local/lib/node_modules/redux-cli/lib/tasks/generate-from-blueprint.js:69:34)

In order to fix it, I ran redux init and never finished it. Then you are left with an empty reduxrc. So the real error message is the one above.

from redux-cli.

SpencerCDixon avatar SpencerCDixon commented on June 9, 2024

I'm not experiencing this behavior on the latest release. Are you using v1.4 >?

from redux-cli.

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.