Angular CLI AOT构建错误缓存?

时间:2017-04-14 18:00:14

标签: angular typescript angular-cli aot

我有一个使用AOT编译器无法构建的Angular(2)应用程序。奇怪的是我用错误修改了组件,并从头开始重建,一次添加一行,这样我就可以追踪问题(AOT错误完全没用)。当我突然重建时出现错误,所以我删除了我添加的最后一件事,并且由于某种原因错误仍然存​​在。然后,我甚至将组件一直带回Angular CLI提供的基本结构,但错误消息仍然存在。知道发生了什么吗?请参阅下面的组件,其中当前的do-nothing状态会引发以下错误:

<div class="d3-chart" #chart></div>

使用此构建命令

    let myGroup2 = DispatchGroup()
    for _ in 0 ..< 1 {
        myGroup2.enter()
        refHandle = postRef.observe(FIRDataEventType.value, with: { (snapshot) in
            let postDict = snapshot.value as? [String : AnyObject] ?? [:]
  // ... need to detect when this observer is finished
        })
        myGroup2.leave() 
    }
    myGroup2.notify(queue: .main) {
    ...
    }

仪表板chart.ts

import matplotlib.pyplot as plt
import numpy as np
from scipy import interpolate

hydropathy_dict = {"I":-0.528, 
        "L":-0.342,
        "F":-0.370,
        "V":-0.308,
        "M":-0.324,
        "P":-0.322,
        "W": -0.270,
        "H": 2.029,
        "T": 0.853,
        "E": 3.173,
        "Q": 2.176,
        "C": 0.081,
        "Y": 1.677,
        "A":-0.495,
        "S": 0.936,
        "N": 2.354,
        "D": 9.573,
        "R": 4.383,
        "G": 0.386,
        "K": 2.101
        }

seq = 'CHCRRSCYSTEYSYGTCTVMGINHRFCC'
hydropathy_list = []
plot_x_axis = []
for aa in seq:
    hydropathy_list.append(hydropathy_dict[aa])

#print(seq, hydropathy_list)
for i in range(len(hydropathy_list)):
    plot_x_axis.append(i)

# convert to np array
hydropathy_list = np.array(hydropathy_list)
plot_x_axis = np.array(plot_x_axis)

# densify data for filled color plot
f = interpolate.interp1d(plot_x_axis, hydropathy_list)
xnew = np.arange(plot_x_axis[0], plot_x_axis[-1], 0.1)
ynew = f(xnew)

plt.plot(plot_x_axis, hydropathy_list)       # blue line
plt.plot([0, len(hydropathy_list)], [0,0])   # green line

# use xnew, ynew to plot filled-color graphs
plt.fill_between(xnew, 0, ynew, where=(ynew-1) < -1 , color='red')
plt.fill_between(xnew, 0, ynew, where=(ynew-1) > -1 , color='green')

plt.show()

仪表板component.html

where=(ynew-1)<-1

0 个答案:

没有答案