EddyVerbruggen / nativescript-bluetooth-demo

30 stars 21 forks source link

The current application is not compatible with NativeScript CLI 8.0.2. #29

Open dh-metre opened 3 years ago

dh-metre commented 3 years ago

I tried the following. I have the impression that in order to get this demo to work i might have to revert to an earlier version of NativeScript CLI as the most direct way to get this to run? Are there some other steps to do the migration so it will work with NativeScript CLI 8.0.2?


% cd Bluetooth 
% ns clean
You are using the deprecated nsconfig.json file. Just be aware that NativeScript now has an improved nativescript.config.(js|ts) file for when you're ready to upgrade this project.
✔ Project successfully cleaned.

% tns run ios

You are using the deprecated nsconfig.json file. Just be aware that NativeScript now has an improved nativescript.config.(js|ts) file for when you're ready to upgrade this project.
The current application is not compatible with NativeScript CLI 8.0.2.

Run 'ns migrate' to migrate your project to the latest NativeScript version.

Alternatively you may try running it with '--force' to skip this check.

% ns migrate

✔ Pre-Migration verification complete
✔ Project files have been backed up
ℹ Cleaning up project files before migration
✔ Project files have been cleaned up
✔ Cleaned old artifacts
⠼ Migrating project to use nativescript.config.ts✔ Cleaned file app/package.json
✔ Project has been migrated to use nativescript.config.ts
  - @nativescript/core ~8.0.0 has been added
  - tns-platform-declarations has been replaced with @nativescript/types 6.5.0
  - @nativescript/webpack ~5.0.0-beta.0 has been added
  - typescript has been updated to ~4.0.0
✔ Project dependencies have been updated
✔ Updated tsconfig.json
✔ Initialized new webpack.config.js
ℹ Updated package.json main field to ./app/app.js
✔ Applied ESLint fixes
✔ Migration complete.

Project has been successfully migrated. The next step is to run ns run <platform> to ensure everything is working properly.

Please note that you may need additional changes to complete the migration.

% ns run ios

The current application is not compatible with NativeScript CLI 8.0.2.

Run 'ns migrate' to migrate your project to the latest NativeScript version.

Alternatively you may try running it with '--force' to skip this check.

% ns run ios --force

Searching for devices...
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @nativescript/types@6.5.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

Unable to install dependencies. Make sure your package.json is valid and all dependencies are correct. Error is: Command npm failed with exit code 1

% ```