使用SCSS将Nativescript添加到Angular 8项目时出错

时间:2019-10-24 13:59:26

标签: angular nativescript

我正在尝试将Nativescript添加到使用SCSS构建的现有Angular 8.2.11项目中。添加@ nativescript / schematics会出错。

在基于CSS的项目中安装时,它没有给出错误。

我正在尝试将Nativescript添加到现有的Angular 8.2.11项目中。我收到一个错误。我可以按照以下步骤在新项目中重现它:


class GraphDisplay:

    def __init__(self, dates, data, ylbl, xlbl, titel, ):
            self.createGraph(dates,data,ylbl,xlbl,titel)

    def createGraph(self,dates,data,ylbl,xlbl,titel):
        plt.plot_date(dates,data)
        plt.ylabel(ylbl)
        plt.xlabel(xlbl)
        plt.title(titel)
        plt.draw()
        plt.show()


def main():

    def createTempGraph(screen):
        stationname = screen.comboWeerstations.get()
        CSV_Reader = WeatherDataFiles()
        data = CSV_Reader.read_CSV(stationname)
        data = list(data)
        data.pop(2)
        data[0].pop(0)
        data[1].pop(0)
        dates = data[0]
        temperature = data[1]
        graph = GraphDisplay(dates, temperature,"Temperatuur","Datum",stationname)
        return graph
    def createAirpGraph(screen):
        stationname = screen.comboWeerstations.get()
        CSV_Reader = WeatherDataFiles()
        data2 = CSV_Reader.read_CSV(stationname)
        data2 = list(data2)
        data2.pop(1)
        data2[0].pop(0)
        data2[1].pop(0)
        dates = data2[0]
        airpressure = data2[1]
        graph2 = GraphDisplay(dates, airpressure,"Temperatuur","Datum",stationname) 
        return graph2

有什么建议吗?

0 个答案:

没有答案