It seems like generating apps using latest NX and NativeScript/NX causes some issues with running the app. Comparing to earlier NX-apps, it looks like the project.json is using builder instead of executor. Replacing with executor solves the issue, but I don't know if this leads to any bad consequences/side effects.
✔ Choose what to create · integrated
✔ What to create in the new workspace · apps
✔ Enable distributed caching to make your CI faster · No
NX Nx is creating your v15.3.0 workspace.
➜ private cd nx-mobile-test
➜ nx-mobile-test git:(main)npm install --save-dev @nativescript/nx
➜ nx-mobile-test git:(main)npx nx g @nativescript/nx:app
NX Generating @nativescript/nx:application
✔ What name would you like to use for the application? · demo1
✔ What frontend framework would you like to use with this NativeScript app? · angular
➜ nx-mobile-test git:(main)nx run nativescript-demo1:ios
> NX Ran target ios for project nativescript-demo1 (8ms)
✖ 0/0 failed
✔ 0/0 succeeded [0 read from cache]
> NX Cannot read properties of undefined (reading 'split')
Pass --verbose to see the stacktrace.
It seems like generating apps using latest NX and NativeScript/NX causes some issues with running the app. Comparing to earlier NX-apps, it looks like the project.json is using builder instead of executor. Replacing with executor solves the issue, but I don't know if this leads to any bad consequences/side effects.
To reproduce:
➜ private
npx create-nx-workspace@15 nx-mobile-test
Need to install the following packages: create-nx-workspace@15 Ok to proceed? (y)✔ Choose what to create · integrated ✔ What to create in the new workspace · apps ✔ Enable distributed caching to make your CI faster · No
➜ private
cd nx-mobile-test
➜ nx-mobile-test git:(main)npm install --save-dev @nativescript/nx
➜ nx-mobile-test git:(main)npx nx g @nativescript/nx:app
✔ What name would you like to use for the application? · demo1 ✔ What frontend framework would you like to use with this NativeScript app? · angular
➜ nx-mobile-test git:(main)
nx run nativescript-demo1:ios