import Vue from 'nativescript-vue' ; import App from './App.vue' ; import { install } from '@nativescript-community/ui-chart' ; install ( ) ; import CanvasSVG from '@nativescript-community/ui-svg/vue' ; Vue . use ( CanvasSVG ) ; Vue . registerElement ( 'LineChart' , ( ) => require ( '@nativescript-community/ui-chart/charts' ) . LineChart ) ; Vue . registerElement ( 'BarChart' , ( ) => require ( '@nativescript-community/ui-chart/charts' ) . BarChart ) ; Vue . registerElement ( 'PieChart' , ( ) => require ( '@nativescript-community/ui-chart/charts' ) . PieChart ) ; Vue . registerElement ( 'RadarChart' , ( ) => require ( '@nativescript-community/ui-chart/charts' ) . RadarChart ) ; Vue . registerElement ( 'CandleStickChart' , ( ) => require ( '@nativescript-community/ui-chart/charts' ) . CandleStickChart ) ; Vue . registerElement ( 'BubbleChart' , ( ) => require ( '@nativescript-community/ui-chart/charts' ) . BubbleChart ) ; Vue . registerElement ( 'ScatterChart' , ( ) => require ( '@nativescript-community/ui-chart/charts' ) . ScatterChart ) ; Vue . registerElement ( 'CombinedChart' , ( ) => require ( '@nativescript-community/ui-chart/charts' ) . CombinedChart ) ; declare let com ; Vue . config . silent = true ; Vue . config . errorHandler = ( e , vm , info ) => { if ( e ) { console . log ( '[Vue][Error]' , `[${ info }]` , e , e . stack ) ; } } ; Vue . config . warnHandler = function ( msg , vm , trace ) { console . warn ( '[Vue][Warn]' , `[${ msg }]` ) ; } ; new Vue ( { render : ( h ) => h ( 'frame' , [ h ( App ) ] ) , } ) . $start ( ) ;