當我使用咕嚕串聯angularjs的bower_components(角& UI路由器),
一個(Error: $injector:modulerr Module Error)
完全錯誤的內置腳本。
當我直接使用腳本源從bower_components
我沒有得到這個錯誤,所以我認爲這是與繁重的級聯的問題。
下面是繁重的腳本,
grunt.initConfig({
concat:{
options: {
},
dist: {
// the files to concatenate
src: ['client/bower_components/angular/angular.min.js','client/bower_components/angular-ui-router/release/angular-ui-router.min.js'],
// the location of the resulting JS file
dest: 'client/bower_components/../assets/scripts/coreScript.js',
nonull: true
}
}
})
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.registerTask('build',['concat']);
}
我已經使用在options
但沒有幫助seperator:';'
也試過。
我能做些什麼來使連接工作在這裏?
如果我在你的情況,我會調試鉻,檢查控制檯(可能有錯誤)和資源,以查找是否所有腳本加載。我很確定這沒什麼,你可能很快就會說沒關係(我希望)。 – MacKentoch
@MacKentoch只有一個內置的(連接的)腳本,它已經加載,這是完整的錯誤https://goo.gl/0yz6pm – wolfgang
您是否試過用手連接它? –