2016-12-06 172 views
0

任何人都有任何想法,爲什麼我會在嘗試執行時得到404:import'expose?AuthenticationContext!../../../ node_modules/adal-angular/LIB/adal.js';嘗試加載ADAL.js時發生404錯誤Angular2

路徑是正確的,並且adal.js文件肯定存在(如果我將URL粘貼到瀏覽器中的另一個選項卡中,它會打開)。我加載了「暴露」(帶有很多警告信息)。下面是完整的錯誤

錯誤加載http://localhost:56580/expose?AuthenticationContext!http://localhost:56580/node_modules/adal-angular/lib/adal.js爲 「暴露?AuthenticationContext!../../../ node_modules /阿達爾 - 角/ lib目錄/ adal.js」 從http://localhost:56580/app/components/domain/auth.provider.js

回答

0

可以嘗試

const AuthenticationContext = require('../../../node_modules/adal-angular/lib/adal.js');

相關問題