NativeScript / nx

NativeScript for Nx.
Other
61 stars 15 forks source link

Unable to run app after initial setup, builder vs executor #63

Closed fpaaske closed 1 year ago

fpaaske commented 1 year ago

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.

<       "builder": "@nativescript/nx:build",
---
>       "executor": "@nativescript/nx:build",

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)

NX Let's create a new workspace [https://nx.dev/getting-started/intro]

✔ 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.
fpaaske commented 1 year ago

This seems to be solved with the latest npx create-nx-workspace@15