From ec473edf841f100fa827741a1a7b01f395da03ff Mon Sep 17 00:00:00 2001 From: Adrian Daluz Date: Fri, 16 Oct 2020 20:00:55 -0500 Subject: [PATCH 1/2] NS7 Live Sync After the update to NS7 getCssFileName is no longer available in the core module you either have to call it from via import { Application } from '@nativescript/core' then call Application.getCssFileName() or require('@nativescript/core/application').getCssFileName() or require('@nativescript/core').Application.getCssFileName(); This is causing issues with live sync. --- platform/nativescript/framework.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/nativescript/framework.js b/platform/nativescript/framework.js index 613796b4..141b1c21 100644 --- a/platform/nativescript/framework.js +++ b/platform/nativescript/framework.js @@ -21,7 +21,7 @@ global.__onLiveSyncCore = () => { if (frame.currentPage) { frame.currentPage.addCssFile( - require('@nativescript/core').getCssFileName() + require('@nativescript/core/application').getCssFileName() ) } } From 97242c3f7341b9c945680cd118cefa7d12615fed Mon Sep 17 00:00:00 2001 From: Igor Randjelovic Date: Thu, 5 Nov 2020 09:44:36 +0100 Subject: [PATCH 2/2] Update platform/nativescript/framework.js --- platform/nativescript/framework.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/nativescript/framework.js b/platform/nativescript/framework.js index 141b1c21..4ba881a0 100644 --- a/platform/nativescript/framework.js +++ b/platform/nativescript/framework.js @@ -21,7 +21,7 @@ global.__onLiveSyncCore = () => { if (frame.currentPage) { frame.currentPage.addCssFile( - require('@nativescript/core/application').getCssFileName() + require('@nativescript/core').Application.getCssFileName() ) } }