NativeScript / nativescript-app-sync

♻️ Update your app without going through the app store!
MIT License
125 stars 24 forks source link

Error: Can't resolve '@nativescript/core' #50

Closed codytooker closed 4 years ago

codytooker commented 4 years ago

Using Nativescript Vue and adding nativescript-app-sync, trying to import AppSync I get the following errors

 Can't resolve '@nativescript/core' in '/node_modules/nativescript-app-sync'
 @ ../node_modules/nativescript-app-sync/app-sync.js 9:13-42

as well as

ERROR in ../node_modules/nativescript-app-sync/TNSRemotePackage.js
ERROR in ../node_modules/nativescript-app-sync/TNSLocalPackage.js
ERROR in ../node_modules/nativescript-app-sync/TNSAcquisitionManager.js
ERROR in ../node_modules/nativescript-app-sync/TNSRequester.js

All with

Module not found: Error: Can't resolve '@nativescript/core'
EddyVerbruggen commented 4 years ago

Which N version are you using?

codytooker commented 4 years ago

6.2.2

EddyVerbruggen commented 4 years ago

@NathanWalker Do you perhaps have an idea? I'm currently in the middle of moving to a new home with my family and have absolutely no spare time atm..

shiv19 commented 4 years ago

@codytooker Can you upgrade tns core modules to 6.2.3 and try again and let us know if it works?

NathanWalker commented 4 years ago

@codytooker its also possible you may need to update your webpack config with latest. Best thing is to often generate a fresh new {N} Vue app with tns cli and just copy the webpack config from that.

alexandrepxl commented 4 years ago

@codytooker I was having the same problem. I updated the project to 6.3.0 and it worked!

codytooker commented 4 years ago

Was out for holiday break but I will try this in the coming days. Thank you for the info.

codytooker commented 4 years ago

This seems to have fixed the issue.