You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to add capacitor to a brand new ionic project --blank template, and I keep getting "Path must be a string. Received undefined", even though the command seems to run to completion.
Here's the commands that keep printing that message:
Node version: 8.9.4 NPM version: 5.7.1
Command 1:
npx cap init myApp com.abc.myapp
Output:
npx: installed 1 in 1.765s
Path must be a string. Received undefined
C:\Prototypes\ionic2\capacitor-test\node_modules\@capacitor\cli\bin\capacitor
√ Initializing Capacitor project in C:\Prototypes\ionic2\capacitor-test in 2.48ms
* Your Capacitor project is ready to go! *
Add platforms using "npx cap add":
npx cap add android
npx cap add ios
npx cap add electron
Follow the Developer Workflow guide to get building:
https://capacitor.ionicframework.com/docs/basics/workflow
Command 2:
npx cap add android
Output:
npx: installed 1 in 1.75s
Path must be a string. Received undefined
...\capacitor-test\node_modules\@capacitor\cli\bin\capacitor
√ Adding native android project in: ...\capacitor-test\android in 59.59ms
- Syncing GradleCreating local properties ...\Library\Android\sdk
√ Syncing Gradle in 698.89μp
√ add in 65.00ms
√ Copying web assets from www to android\app\src\main\assets\public in 26.65ms
√ Copying native bridge in 1.80ms
√ Copying capacitor.config.json in 12.60ms
Found 3 Cordova plugin(s):
cordova-plugin-device
cordova-plugin-splashscreen
cordova-plugin-whitelist
√ copy in 109.51ms
√ Fetching plugins in 10.48ms
Found 3 Cordova plugin(s):
cordova-plugin-device
cordova-plugin-splashscreen
cordova-plugin-whitelist
Found 0 Capacitor plugin(s):
√ update android in 33.13ms
The text was updated successfully, but these errors were encountered:
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Hello,
I was trying to add capacitor to a brand new ionic project --blank template, and I keep getting "Path must be a string. Received undefined", even though the command seems to run to completion.
Here's the commands that keep printing that message:
Node version: 8.9.4
NPM version: 5.7.1
Command 1:
Output:
Command 2:
Output:
The text was updated successfully, but these errors were encountered: