Comments (5)
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.
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.
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.
Git2Gus App is installed but the .git2gus/config.json
doesn't exist.
from sfdx-plugin-generate.
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)
- Errors thrown via SfdxError are not appearing: sfdx xyz:myplugin:set -u alias -p=xyz HOT 2
- No documentation for testing HOT 4
- Error thrown when running tests
- Mismatched version in @oclif/plugin-warn-if-update-available & @oclif/plugin-not-found HOT 2
- Wrong type definitions fetched for DescribeGlobalResult and DescribeGlobalSObjectResult HOT 3
- hello:org does not work HOT 2
- hello:org example does not work HOT 3
- Generated plugin fails when linking HOT 1
- Version of Node required is different to developer guide HOT 1
- plugin help shows <%= command.id %> instead of hello:org HOT 3
- MissingBundleError Plugin: XXX Missing bundle for locale en_US. HOT 5
- yarn run prepack fails for newly generated plugin HOT 5
- Documentation still refers to "yarn prepare" instead of "yarn prepack" HOT 1
- vscode debugging is broken HOT 1
- Guide to create a new Plugin is not working - Globby Missing Dependency HOT 1
- Template Output: `npm run test` gives little output / as if no tests ran. HOT 4
- Error: command hello:org not found HOT 12
- Error: command hello:org not found caused by incorrect folder structure on plugin HOT 3
- Unable to build (tsc) sfdx plugin for a few days
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 sfdx-plugin-generate.