Ember.js 错误:找不到模板或视图

Ember.js 错误:找不到模板或视图,ember.js,Ember.js,我们有一个EmberJS应用程序,每次我尝试运行该应用程序时,以下运行时错误都会在启动时发生。这是一个仅与窗口相关的问题。Mac工作得非常好。我相信vendor.js包含了我们应用程序所依赖的许多第三方库。从哪里开始调试此问题?有人建议web包可能存在潜在问题?这是开始的地方吗?我是这个项目的新手,据我所知,该公司从未有人使用windows环境进行过开发。我怀疑有许多特定于mac的项目已经到位。只是不确定从哪里开始。任何提示都很好。谢谢 EmberError description : und

我们有一个EmberJS应用程序,每次我尝试运行该应用程序时,以下运行时错误都会在启动时发生。这是一个仅与窗口相关的问题。Mac工作得非常好。我相信vendor.js包含了我们应用程序所依赖的许多第三方库。从哪里开始调试此问题?有人建议web包可能存在潜在问题?这是开始的地方吗?我是这个项目的新手,据我所知,该公司从未有人使用windows环境进行过开发。我怀疑有许多特定于mac的项目已经到位。只是不确定从哪里开始。任何提示都很好。谢谢

 EmberError description : undefined fileName : undefined lineNumber :
 undefined message : "Assertion Failed: Could not find "svg.iconCharts" template or view." name : "Error" number : undefined stack : 
"Error: Assertion Failed: Could not find "svg.iconCharts" template or view.↵  
 at new EmberError (https://localhost:3000/vendor.js:39962:23)↵    at
 Object.Ember.assert (https://localhost:3000/vendor.js:29576:15)↵    at
 Class.render (https://localhost:3000/vendor.js:51100:17)↵    at
 Class.renderTemplate (https://localhost:3000/main.js:63561:18)↵    at
 apply (https://localhost:3000/vendor.js:45385:27)↵    at
 Class.superWrapper [as renderTemplate]
 (https://localhost:3000/vendor.js:44956:15)↵    at Class.setup
 (https://localhost:3000/vendor.js:50366:16)↵    at applyHook
 (https://localhost:3000/vendor.js:72695:30)↵    at callHook
 (https://localhost:3000/vendor.js:72689:14)↵    at
 handlerEnteredOrUpdated (https://localhost:3000/vendor.js:71449:7)"
    __proto__ : Error
    reportError @   errors.js:6
    error   @   base.js:71
    triggerEvent    @   ember.debug.js:26351
    trigger @   ember.debug.js:46873
    trigger @   ember.debug.js:46718
    finalizeTransition  @   ember.debug.js:45907
    (anonymous) @   ember.debug.js:45309
    tryCatch    @   ember.debug.js:47307
    invokeCallback  @   ember.debug.js:47319
    publish @   ember.debug.js:47290
    (anonymous) @   ember.debug.js:29435
    invoke  @   ember.debug.js:679
    flush   @   ember.debug.js:749
    end @   ember.debug.js:135
    (anonymous) @   ember.debug.js:521
    setTimeout (async)      
    createAutorun   @   ember.debug.js:519
    defer   @   ember.debug.js:219
    run.schedule    @   ember.debug.js:18411
    raf @   fastdom.js:67
    scheduleFlush   @   fastdom.js:197
    measure @   fastdom.js:98
    (anonymous) @   eq.js:376
    load (async)        
    addEvent    @   eq.js:38
    (anonymous) @   eq.js:375
    fn  @   bootstrap:98
    ./app/scripts/dependencies.js   @   wizard.js:204
    __webpack_require__ @   bootstrap:721
    fn  @   bootstrap:98
    ./app/scripts/app.js    @   ajax.js:90
    __webpack_require__ @   bootstrap:721
    fn  @   bootstrap:98
    1   @   main.js:123381
    __webpack_require__ @   bootstrap:721
    ./app/fonts/MaterialIcons-Regular.eot.module.exports    @   bootstrap:788
    (anonymous) @   bootstrap:788

最好的猜测是,对于某个应用程序依赖项,这是开发模式中的路径问题。如果搜索
svg.iconCharts
字符串,您可能会找到出现问题的加载项

这是在运行
ember s
之后还是在浏览器中打开页面时发生的?如果它发生在构建过程中,并且只发生在windows下,那么最好使用mac或安装Ubuntu作为第二个操作系统。如果你严格反对第二个操作系统的想法,你也可以尝试在Virtualbox/VMware中使用Ubuntu。这是因为似乎没有很多前端开发人员使用Windows,这导致不同工具的支持较差。谢谢Gennady。在浏览器中打开页面时会出现此问题。我正在买mac电脑。但与此同时,我的个人笔记本电脑目前还停留在windows上,很不幸。你的同事是否向你提供了清晰的构建说明?也许你只是错过了一些重要的步骤是的,构建说明非常清楚。当我向他们展示这个问题时,他们不知道发生了什么。他们中没有人使用windows,因此看起来似乎没有人测试过在windows上开发。这可能不是版本问题,而是特定浏览器的问题,可能会影响应用程序的用户。若您在测试服务器或生产服务器上的某个位置部署了该应用程序,那个么您应该测试它是否可以在您的笔记本电脑上运行。通过这种方式,您将知道Windows用户的应用程序是否已损坏,或者Windows上的构建过程是否已损坏