第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

webpack可以正常打包,但是運(yùn)行頁(yè)面報(bào)錯(cuò): Uncaught Error: [$injector:modulerr]

我的項(xiàng)目用的webpack打包,代碼用的angular?js 1.6.8,bootstrap,在設(shè)置angular?路由(router)時(shí),報(bào)Uncaught Error: [$injector:modulerr]

入口js關(guān)鍵代碼如下:

//配置依賴

require(['jquery', 'angular', 'angular-ui-router', 'bootstrap','ocLazyLoad','angular-sanitize'], function ($,angular) {

? ? ? ? ? ?// angular.bootstrap(document, ['webApp']);

//TODO TEST START

var app = angular.module('webApp', ["ui.router","oc.lazyLoad", 'ngSanitize']);

app.config(function($stateProvider, $urlRouterProvider, $ocLazyLoadProvider) {

? ? ? ?console.log("Router開始----");

????????????????????????.......

'jquery', 'angular', 'angular-ui-router', 'bootstrap','ocLazyLoad','angular-sanitize'?都是用npm安裝的。

煩請(qǐng)各位指教,謝謝。


正在回答

舉報(bào)

0/150
提交
取消

webpack可以正常打包,但是運(yùn)行頁(yè)面報(bào)錯(cuò): Uncaught Error: [$injector:modulerr]

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)