Angular 4 Unit test error - Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'ng:///DynamicTestModule/LoginComponent.ngfactory.js'

前端 未结 4 1621
花落未央
花落未央 2021-02-18 15:03

I am writing some unit tests for my component and i am getting this cryptic error message. I found a similar question at Angular 2 unit testing - getting error Failed to load &#

4条回答
  •  再見小時候
    2021-02-18 15:37

    I encountered the same issue using angular-cli 6, so to get the right error message one should use the following:

    ng test --source-map=false
    

    Maybe it will help someone :) .

提交回复
热议问题