应用程序在生产中没有任何问题,但是当我尝试使用phantomjs打开它以获取SS时我得到以下错误:
Error: [$injector:modulerr] Failed to instantiate module myApp due to:
[$injector:nomod] Module is not available! You either misspelled the
module name or forgot to load it. If registering a module ensure that
you specify the dependencies as the second argument.
http://errors.angularjs.org/1.4.14/$injector/nomod..
另一方面,如果我尝试从localhost打开,则不会发生此错误,并且一切都按预期工作。
我正在使用ngAnnotate所以DI应该不是问题...不确定我接下来应该尝试什么。有没有人有类似的问题?