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

Error while parsing Capacitor CLI version console logging in capacitor.config.ts #5098

Open
beliven-davide-lorigliola opened this issue Oct 25, 2024 · 0 comments
Labels

Comments

@beliven-davide-lorigliola

Description:
If I try to use console.log('whatever') in capacitor.config.ts launching ionic capacitor run android or ionic capacitor run ios I get "Error while parsing Capacitor CLI version".

But if I launch npx cap run android I get the console.log() working and no error.

Why?

Verbose:

ionic:lib Terminal info: { ci: false, shell: '/bin/zsh', tty: true, windows: false } +0ms
  ionic:lib CLI global options: { _: [ 'capacitor', 'run', 'android' ], help: null, h: null, verbose: true, quiet: null, interactive: true, color: true, confirm: null, json: null, livereload: true, external: true, project: null, '--': [] } +1ms
  ionic:lib:project Project type from config: vue-vite (vue-vite) +0ms
  ionic:lib:project Project details: { context: 'app', type: 'vue-vite', errors: [], configPath: '/Users/davidelorigliola/Beliven/Showgroup/Sviluppo/showgroup-app/ionic.config.json' } +0ms
  ionic Context: { binPath: '/Users/davidelorigliola/.nvm/versions/node/v20.11.1/lib/node_modules/@ionic/cli/bin/ionic', libPath: '/Users/davidelorigliola/.nvm/versions/node/v20.11.1/lib/node_modules/@ionic/cli', execPath: '/Users/davidelorigliola/Beliven/Showgroup/Sviluppo/showgroup-app', version: '7.2.0' } +0ms
[ERROR] Error while parsing Capacitor CLI version.
  ionic:utils-process onBeforeExit handler: 'process.exit' received +0ms
  ionic:utils-process onBeforeExit handler: running 0 functions +0ms
  ionic:utils-process processExit: exiting (exit code: 1) +0ms

My ionic info:

Ionic:

   Ionic CLI       : 7.2.0 (/Users/davidelorigliola/.nvm/versions/node/v20.11.1/lib/node_modules/@ionic/cli)
   Ionic Framework : @ionic/vue 8.2.2

Capacitor:

   Capacitor CLI      : myConfig bGpuo1kqKbFEGlYYLk5DqLo0MkXSsML4pwJjvPd7bAslzw5MpmDp8dAiDyVQVkLf 6.1.0
   @capacitor/android : 6.1.1
   @capacitor/core    : 6.1.0
   @capacitor/ios     : 6.1.1

Utility:

   cordova-res : not installed globally
   native-run  : 2.0.1

System:

   NodeJS : v20.11.1 (/Users/davidelorigliola/.nvm/versions/node/v20.11.1/bin/node)
   npm    : 10.2.4
   OS     : macOS Unknown

Other Information:

@ionitron-bot ionitron-bot bot added the triage label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant