Skip to content

Commit f1110f1

Browse files
fix: wrong import for getCssFileName (#738)
* 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. * Update platform/nativescript/framework.js Co-authored-by: Igor Randjelovic <[email protected]>
1 parent 4678eb2 commit f1110f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: platform/nativescript/framework.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ global.__onLiveSyncCore = () => {
2121

2222
if (frame.currentPage) {
2323
frame.currentPage.addCssFile(
24-
require('@nativescript/core').getCssFileName()
24+
require('@nativescript/core').Application.getCssFileName()
2525
)
2626
}
2727
}

0 commit comments

Comments
 (0)