-
Notifications
You must be signed in to change notification settings - Fork 679
Open
Labels
Description
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: