Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails at runtime #246

Closed
nitaking opened this issue Jun 10, 2019 · 5 comments · Fixed by #247
Closed

Fails at runtime #246

nitaking opened this issue Jun 10, 2019 · 5 comments · Fixed by #247

Comments

@nitaking
Copy link

Do you want to request a feature or report a bug?

bug

It looks like the following problems and problems are still occurring.
#170

What is the current behavior?

$ npx oclif -v
oclif/1.13.2 darwin-x64 node-v9.11.2

 $ gitmoji
gitmoji-c is a gitmoji-cli clone tool that does not use gpg.

VERSION
  gitmoji-c/0.0.3 darwin-x64 node-v9.11.2

USAGE
  $ gitmoji [COMMAND]

COMMANDS
  commit  Interactively commit using the prompts
  help    display help for gitmoji
  list    List all the available gitmojis

 $ gitmoji list
Error: Cannot find module '/Users/user2/.config/yarn/global/node_modules/gitmoji-c/lib/commands/list'
    at fetch (~/.config/yarn/global/node_modules/@oclif/config/lib/plugin.js:97:31)
    at Plugin.findCommand (~/.config/yarn/global/node_modules/@oclif/config/lib/plugin.js:115:21)
    at Object.load (~/.config/yarn/global/node_modules/@oclif/config/lib/plugin.js:48:72)
    at Config.runCommand (~/.config/yarn/global/node_modules/@oclif/config/lib/config.js:149:27)
    at Main.run (~/.config/yarn/global/node_modules/@oclif/command/lib/main.js:21:27)
    at Main._run (~/.config/yarn/global/node_modules/@oclif/command/lib/command.js:44:31)
    at <anonymous>

https://github.com/nitaking/gitmoji-c
https://www.npmjs.com/package/gitmoji-c

What is the expected behavior?

Please mention your oclif and OS version.
oflif: 1.13.2

@jdx
Copy link
Contributor

jdx commented Jun 11, 2019

The following works for me:

$ node -v
v12.4.0
$ npm -v
6.9.0
$ npx oclif -v
oclif/1.13.2 darwin-x64 node-v12.4.0
$ npx oclif multi mynewcli --defaults --options=typescript
...
$ cd mynewcli
$ npm publish --dry-run

> mynewcli@0.0.0 prepack .
> rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme

wrote manifest to /Users/jeffd/tmp/mynewcli/oclif.manifest.json
replacing <!-- usage --> in README.md
replacing <!-- commands --> in README.md
replacing <!-- toc --> in README.md

> mynewcli@0.0.0 postpack .
> rm -f oclif.manifest.json

npm notice
npm notice 📦  mynewcli@0.0.0
npm notice === Tarball Contents ===
npm notice 1.2kB package.json
npm notice 503B  oclif.manifest.json
npm notice 1.6kB README.md
npm notice 132B  bin/run
npm notice 31B   bin/run.cmd
npm notice 455B  lib/commands/hello.d.ts
npm notice 932B  lib/commands/hello.js
npm notice 38B   lib/index.d.ts
npm notice 149B  lib/index.js
npm notice === Tarball Details ===
npm notice name:          mynewcli
npm notice version:       0.0.0
npm notice package size:  2.2 kB
npm notice unpacked size: 4.9 kB
npm notice shasum:        53835b233167bc404fbbf7be0320aad8a2126e03
npm notice integrity:     sha512-44QeOFNuSVsN5[...]4cO/UtF4c64bg==
npm notice total files:   9
npm notice
+ mynewcli@0.0.0

@jdx
Copy link
Contributor

jdx commented Jun 11, 2019

try deleting tsconfig.tsbuildinfo

jdx added a commit to oclif/dev-cli that referenced this issue Jun 11, 2019
I am not sure if this is the best way to do this, but it does seem to fix the problem.

Fixes oclif/oclif#246
@nitaking
Copy link
Author

@jdxcode
I solved composite: true.
Thanks!

@nitaking
Copy link
Author

I don't close until it's fundamentally solved!

@oclif-bot
Copy link
Contributor

🎉 This issue has been resolved in version 1.13.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

mateomurphy added a commit to mateomurphy/sucre that referenced this issue Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants