Giter VIP home page Giter VIP logo

Comments (5)

nkadis avatar nkadis commented on August 23, 2024 1

I had the exact same issues and ended up bumping all packages to their latest versions, except for globby (that was throwing a different error if upgraded). I'm not sure exactly which packages were the culprits, but upgrading @types/jsforce to the latest version surely got rid of most of them. As of writing this, here are the latest versions for every package:

"dependencies": {
    "@oclif/command": "^1.8.3",
    "@oclif/config": "^1.17.1",
    "@oclif/errors": "^1.3.5",
    "@salesforce/command": "^4.1.5",
    "@salesforce/core": "^2.29.0",
    "tslib": "^2.3.1"
  },
  "devDependencies": {
    "@oclif/dev-cli": "^1.26.0",
    "@oclif/plugin-help": "^3.2.5",
    "@oclif/test": "^1.2.8",
    "@salesforce/dev-config": "^2.1.2",
    "@salesforce/dev-scripts": "^0.9.18",
    "@salesforce/prettier-config": "^0.0.2",
    "@salesforce/ts-sinon": "^1.3.21",
    "@types/chai": "^4.2.22",
    "@types/jsforce": "^1.9.35",
    "@types/mocha": "^9.0.0",
    "@typescript-eslint/eslint-plugin": "^5.4.0",
    "@typescript-eslint/parser": "^5.4.0",
    "chai": "^4.3.4",
    "eslint": "^8.2.0",
    "eslint-config-oclif": "^4.0.0",
    "eslint-config-prettier": "^8.3.0",
    "eslint-config-salesforce": "^0.1.6",
    "eslint-config-salesforce-typescript": "^0.2.8",
    "eslint-plugin-header": "^3.1.1",
    "eslint-plugin-import": "^2.25.3",
    "eslint-plugin-jsdoc": "^37.0.3",
    "eslint-plugin-prettier": "^4.0.0",
    "eslint-plugin-typescript": "^0.14.0",
    "globby": "^11",
    "husky": "^7.0.4",
    "mocha": "^9.1.3",
    "nyc": "^15.1.0",
    "prettier": "^2.4.1",
    "pretty-quick": "^3.1.2",
    "sinon": "^12.0.1",
    "ts-node": "^10.4.0",
    "typescript": "^4.5.2"
  },

from sfdx-plugin-generate.

keirbowden avatar keirbowden commented on August 23, 2024 1

I just tried with the latest cli and standard plug-ins. After scaffolding but before touching the dependencies, all the hello:org commands work, including -h and --help. Prepack fails with :

node_modules/@salesforce/command/lib/sfdxCommand.d.ts:63:21 - error TS2315: Type 'OutputArgs' is not generic.

63     protected args: OutputArgs<any>;
                       ~~~~~~~~~~~~~~~

After updating all the dependencies with the version in the earlier comment, all the hello:org commands still work and the prepack command succeeds.

from sfdx-plugin-generate.

FabienTaillon avatar FabienTaillon commented on August 23, 2024 1

Thank you. Following your post I published a new version of our plugin and everything works fine, whereas locally it doesn't. Definitely something with my local setup.

from sfdx-plugin-generate.

uip-robot-zz avatar uip-robot-zz commented on August 23, 2024

Git2Gus App is installed but the .git2gus/config.json doesn't exist.

from sfdx-plugin-generate.

FabienTaillon avatar FabienTaillon commented on August 23, 2024

Bumping versions worked for me too, except that the -h flag isn't working anymore (whereas the --help flag does).
Getting the following error while running sfdx hello:org -h:

Could not load a help class, consider installing the @oclif/help package, failed with message:
Cannot find module '@oclif/help'

Is that working for you ?

from sfdx-plugin-generate.

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.