cancel
Showing results for 
Search instead for 
Did you mean: 

The changes in VScode is not getting reflected on Simulator

keerthanal
Explorer
0 Kudos
587

Hello Experts,

The changes in VScode is not getting reflected on Simulator ,kindly look into this issue and help
MDK version - 6.1.0

SAM - 2005

Accepted Solutions (0)

Answers (5)

Answers (5)

bill_froelich
Product and Topic Expert
Product and Topic Expert

Check and make sure your Preferences > Settings > MDK > Mdk: TS Target is set to es6 if you are creating a bundle for an MDK 6.x and above client.

ajiteshupadhyay
Participant
0 Kudos

Hi bill.froelich , Hi jitendrakumar.kansal ,

I'm also facing the same issue, the app launched from VS code, always tries to get the changs from mobile service instead of local. any further suggestion how to resolve it?

Many thanks in advance,

Ajitesh

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

The client will always check for definitions from App Update. If definitions are found they are downloaded and the OnWillUpdate is triggered. You can include a prompt to allow the user to opt our of accepting the definitions if desired.

If you are deploying the metadata bundle directly to the client from VSCode you can just choose to not accept the definitions from App update and continue to use the deployed definitions. Alternatively you can setup a secondary app in Mobile Services where you do not deploy the definitions to App Update and onboard to this app for local debugging so you won't find any definitions in App update and only use the directly deployed definitions.

keerthanal
Explorer
0 Kudos

TS target was es5, changed to es6 and relaunched still the problem exists
MDK 6.1.2

SAM -2110

Nativescript -8.0.2

As per the above image, after launching it still fetching back end data not the bundle.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Are you sure the editor is deploying to the correct client? Do you see mbundle.js created in your client app directory when running the build from VSCode before you launch?

keerthanal
Explorer
0 Kudos

I'm creating a bundle in VS Code and launching it on simulator

It's happening same with the latest MDK client version 6.1.2
SAM - 2110

After creating a bundle and launching, its loading backend data not the bundle one.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Please provide more details about what you are doing in VS Code and how you are then building / deploying so the simulator can see it,

When you onboarded the client did you accept definitions from App Update?

If yes, are you then deploying from VS Code to Mobile Services App Update

If no, are you building from VS Code to bundle and copy to the simulator?

Does VS Code point to the correct simulator location (in preferences or launch.json)?