TypeError:cfg.getTemplate不是函数

时间:2017-04-06 18:56:40

标签: angularjs webpack angular-ui-router

我目前正在使用angularjs处理网络应用。我的文件使用Webpack捆绑在一起。依赖性是:

import time
import random
import sys
import pickle

class Zombie:
    def __init__(self, name):
        self.name = name
        self.maxhealth = 50
        self.health = self.maxhealth
        self.attack = 5
        self.golddrop = random.randint(5,10)

class Skeleton:
    def __init__(self, name):
        self.name = name
        self.maxhealth = 75
        self.health = self.maxhealth
        self.attack = random.randint(5,10)
        self.golddrop = random.randint(5,10)


class Friend:
    def __init__(self, name):
        self.name = name
        self.maxhealth = 100
        self.health = self.maxhealth
        self.attack = random.randint(7,10)


class DungeonBoss:
    def __init__(self, name):
        self.name = name
        self.maxhealth = 150
        self.health = self.maxhealth
        self.attack = random.randint(15, 25)

我遇到了错误:Errors in chrome console

我正在添加代码库:

https://github.com/markrudenkov/forecast-forex-rates/tree/master/src/main/app

1 个答案:

答案 0 :(得分:1)

我在这里遇到同样的错误(Webpack2,AngularJS)。这是ui-router的一个问题。

a patch在我的情况下工作正常(到目前为止:-)),但我无法判断它是否正常或只是掩盖了一个真正的问题。

还有一个ticket似乎涵盖了同样的问题。