Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

523
Views
Error when creating new Nativescript and Angular shared project

I'm trying to create a new project of Nativescript using the shared project option. However, as soon as I run ng new I have this error on the terminal:

An unhandled exception occurred: NOT SUPPORTED: keyword "id", use "$id" for schema ID See "/private/..../angular-errors.log" for further details.

This is the command I'm running:

ng new -c=@nativescript/schematics my-shared-app --shared --style=scss

And this is the version of my packages:

  • MacBook Air m1
  • Node v16.13.0
  • Npm v8.1.0
  • NS v8.1.5
  • Angular CLI 13.1.2

I've followed all the steps to install and create like said in the docs here: https://v7.docs.nativescript.org/angular/code-sharing/creating-a-new-project

When creating projects with nseverything works just fine. I can create the project, develop, test and run ins run android/iOS. For example, this command works:

ns create HelloWorld --template @nativescript/template-hello-world-ts

Any idea what's going on with this error?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I think nativescript/schematics is no longer supported in nativescript 8. I tried this 2 months ago, and wasn't successful in using nativescript/schematics with {N}8. Their recommendation as appears here is to use other solutions such as Nrwl Nx DevTools code-sharing platform, that is used for code-sharing in monorepos. Their two recommendations are using it with @nativescript/nx or with @nstudio/xplat).

Here are 2 more links from my previous research, by Nathan Walker (one of the creators of nativescript) explaining how to use code sharing with xplat: xplat multi-platform tools for Nx workspaces with Nathan Walker

And a newer one for sharing code with NativeScript and Capacitor (the Ionic wrapper).

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!