4

I followed the steps provided in here for android/ios app using nativescript + angular but I am getting below error when the app opens in the emulator.

I am sharing the root package.json.

I am not able to find where I have mistake. Can someone please help.

Error Screen

package.json

5
  • 1
    It must be some minor issue within your code, try running without --bundle option which may give you a better error log. Also try to post the error log as text rather image. Commented Dec 28, 2018 at 17:29
  • It works fine for below configuration - "name": "Checklist", "nativescript": { "id": "org.nativescript.Checklist", "tns-android": { "version": "5.0.0" } } Commented Dec 28, 2018 at 17:50
  • @Baskar whats the version for tns-core-mdules? Should it be same as tns-andoid version? Commented Dec 29, 2018 at 5:02
  • @AkshayaJeevan Below are the versions "nativescript-angular": "~7.0.0", "tns-core-modules": "~5.0.0", Commented Dec 31, 2018 at 17:17
  • @AkshayaJeevan Also tested with "tns-core-modules": "^5.1.1", "tns-android": { "version": "5.1.0" } using Android emulator. Used commands tns run android --bundle to test. Commented Jan 2, 2019 at 20:58

1 Answer 1

3

I had the same issue, upgrade node.js from 8 to 10, removing node modules & hooks & webpack config file then reinstalling helped

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.