NativeScript / nx

NativeScript for Nx.
Other
61 stars 15 forks source link

@nativescript/nx must be used inside an Nx workspace. Create a workspace first. https://nx.dev #71

Closed grizlizli closed 10 months ago

grizlizli commented 10 months ago

Hi,

Hope you are doing well.

I tried created a project with Nx and when I try to add Nativescript app, I get this error:

@nativescript/nx must be used inside an Nx workspace. Create a workspace first. https://nx.dev

However, the project was generated with Nx and the Nx workspace does exist...

Here's the list of commands I used:

npx create-nx-workspace@latest
cd my-app-name
npm install --save-dev @nx/js
npx nx g @nx/js:init
npm install --save-dev @nativescript/nx
npx nx g @nativescript/nx:app my-app-name-mobile

Node version: v18.14.0

NathanWalker commented 10 months ago

Hi @grizlizli Nx 17 was released 2 days ago which could be related. You can try this in meantime:

npx create-nx-workspace@16.10.0

and then same steps.

grizlizli commented 10 months ago

I tried with version 16.10.0, same error. :( @NathanWalker

NathanWalker commented 10 months ago

Thanks again @grizlizli Nx 17+ with all the fixes was just published: https://github.com/NativeScript/nx/releases/tag/17.0.0

Same steps (using npx create-nx-workspace@latest will be fine), please post back if any further issue.

grizlizli commented 10 months ago

It looks good now. Thanks!

@NathanWalker