Skip to content

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

@grizlizli

Description

@grizlizli

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions