I have upgraded to the latest version (1.7).Now it gives below mentioned error when I try to load the app.Could you tell me why ? Thanks in advance.
Error url : [https://docs.angularjs.org/error/$injector/modulerr?p0=app&p1=Error:%20%5B$injector:modulerr%5D%20http:%2F%2Ferrors.angularjs.org%2F1.4.8%2F$injector%2Fmodulerr%3Fp0%3Doc.lazyLoad%26p1%3DError%253A%2520%255B%2524injector%253Anomod%255D%2520http%253A%252F%252Ferrors.angularjs.org%252F1.4.8%252F%2524injector%252Fnomod%253Fp0%253Dxeditable%250A%2520%2520%2520%2520at%2520Error%2520(native)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A6240%252FScripts%252Fangular.min.js%253A6%253A416%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A6240%252FScripts%252Fangular.min.js%253A24%253A186%250A%2520%2520%2520%2520at%2520b%2520(http%253A%252F%252Flocalhost%253A6240%252FScripts%252Fangular.min.js%253A23%253A251)%250A%2520%2520%2520%2520at%2520Object.module%2520(http%253A%252F%252Flocalhost%253A6240%252FScripts%252Fangular.min.js%253A23%253A494)%250A%2520%2520%2520%2520at%2520u%2520(http%253A%252F%252Flocalhost%253A6240%252Flibs%252Fangular-ocLazyLoad%252FocLazyLoad.min.js%253A8%253A2925)%250A%2520%2520%2520%2520at%2520Object.n%2520%255Bas%2520forEach%255D%2520(http%253A%252F%252Flocalhost%253A6240%252FScripts%252Fangular.min.js%253A7%253A333)%250A%2520%2520%2520%2520at%2520u%2520(http%253A%252F%252Flocalhost%253A6240%252Flibs%252Fangular-ocLazyLoad%252FocLazyLoad.min.js%253A8%253A2994)%250A%2520%2520%2520%2520at%2520http%253A%252F%252Flocalhost%253A6240%252Flibs%252Fangular-ocLazyLoad%252FocLazyLoad.min.js%253A8%253A3048%250A%2520%2520%2520%2520at%2520Object.n%2520%255Bas%2520forEach%255D%2520(http%253A%252F%252Flocalhost%253A6240%252FScripts%252Fangular.min.js%253A7%253A333)%0A%20%20%20%20at%20Error%20(native)%0A%20%20%20%20at%20http:%2F%2Flocalhost:6240%2FScripts%2Fangular.min.js:6:416%0A%20%20%20%20at%20http:%2F%2Flocalhost:6240%2FScripts%2Fangular.min.js:38:391%0A%20%20%20%20at%20n%20(http:%2F%2Flocalhost:6240%2FScripts%2Fangular.min.js:7:333)%0A%20%20%20%20at%20g%20(http:%2F%2Flocalhost:6240%2FScripts%2Fangular.min.js:37:488)%0A%20%20%20%20at%20http:%2F%2Flocalhost:6240%2FScripts%2Fangular.min.js:38:134%0A%20%20%20%20at%20n%20(http:%2F%2Flocalhost:6240%2FScripts%2Fangular.min.js:7:333)%0A%20%20%20%20at%20g%20(http:%2F%2Flocalhost:6240%2FScripts%2Fangular.min.js:37:488)%0A%20%20%20%20at%20eb%20(http:%2F%2Flocalhost:6240%2FScripts%2Fangular.min.js:41:249)%0A%20%20%20%20at%20c%20(http:%2F%2Flocalhost:6240%2FScripts%2Fangular.min.js:19:463])
Here it shows the error :
This is my whole app.js file.
/* 'app' MODULE DEFINITION */
var appModule = angular.module("app", [
"ui.router",
"ui.bootstrap",
'ui.utils',
"ui.jq",
'ui.grid',
'ui.grid.pagination',
"oc.lazyLoad",
"ngSanitize",
'angularFileUpload',
'daterangepicker',
'xeditable',
'abp'
]);
/* LAZY LOAD CONFIG */
/* This application does not define any lazy-load yet but you can use $ocLazyLoad to define and lazy-load js/css files.
* This code configures $ocLazyLoad plug-in for this application.
* See it's documents for more information: https://github.com/ocombe/ocLazyLoad
*/
appModule.config(['$ocLazyLoadProvider', function ($ocLazyLoadProvider) {
$ocLazyLoadProvider.config({
cssFilesInsertBefore: 'ng_load_plugins_before', // load the css files before a LINK element with this ID.
debug: false,
events: true,
modules: []
});
}]);
/* THEME SETTINGS */
App.setAssetsPath(abp.appPath + 'metronic/assets/');
appModule.factory('settings', ['$rootScope', function ($rootScope) {
var settings = {
layout: {
pageSidebarClosed: false, // sidebar menu state
pageContentWhite: true, // set page content layout
pageBodySolid: false, // solid body color state
pageAutoScrollOnLoad: 1000 // auto scroll to top on page load
},
layoutImgPath: App.getAssetsPath() + 'admin/layout4/img/',
layoutCssPath: App.getAssetsPath() + 'admin/layout4/css/',
assetsPath: abp.appPath + 'metronic/assets',
globalPath: abp.appPath + 'metronic/assets/global',
layoutPath: abp.appPath + 'metronic/assets/layouts/layout4'
};
$rootScope.settings = settings;
return settings;
}]);
/* ROUTE DEFINITIONS */
appModule.config([
'$stateProvider', '$urlRouterProvider',
function ($stateProvider, $urlRouterProvider) {
// Default route (overrided below if user has permission)
$urlRouterProvider.otherwise("/welcome");
//Welcome page
$stateProvider.state('welcome', {
url: '/welcome',
templateUrl: '~/App/common/views/welcome/index.cshtml'
});
//COMMON routes
if (abp.auth.hasPermission('Pages.Administration.Roles')) {
$stateProvider.state('roles', {
url: '/roles',
templateUrl: '~/App/common/views/roles/index.cshtml',
menu: 'Administration.Roles'
});
}
if (abp.auth.hasPermission('Pages.Administration.Users')) {
$stateProvider.state('users', {
url: '/users',
templateUrl: '~/App/common/views/users/index.cshtml',
menu: 'Administration.Users'
});
}
if (abp.auth.hasPermission('Pages.Administration.Languages')) {
$stateProvider.state('languages', {
url: '/languages',
templateUrl: '~/App/common/views/languages/index.cshtml',
menu: 'Administration.Languages'
});
if (abp.auth.hasPermission('Pages.Administration.Languages.ChangeTexts')) {
$stateProvider.state('languageTexts', {
url: '/languages/texts/:languageName?sourceName&baseLanguageName&targetValueFilter&filterText',
templateUrl: '~/App/common/views/languages/texts.cshtml',
menu: 'Administration.Languages'
});
}
}
if (abp.auth.hasPermission('Pages.Administration.AuditLogs')) {
$stateProvider.state('auditLogs', {
url: '/auditLogs',
templateUrl: '~/App/common/views/auditLogs/index.cshtml',
menu: 'Administration.AuditLogs'
});
}
if (abp.auth.hasPermission('Pages.Administration.OrganizationUnits')) {
$stateProvider.state('organizationUnits', {
url: '/organizationUnits',
templateUrl: '~/App/common/views/organizationUnits/index.cshtml',
menu: 'Administration.OrganizationUnits'
});
}
//HOST routes
$stateProvider.state('host', {
'abstract': true,
url: '/host',
template: '<div ui-view class="fade-in-up"></div>'
});
if (abp.auth.hasPermission('Pages.Tenants')) {
$urlRouterProvider.otherwise("/host/tenants"); //Entrance page for the host
$stateProvider.state('host.tenants', {
url: '/tenants',
templateUrl: '~/App/host/views/tenants/index.cshtml',
menu: 'Tenants'
});
}
if (abp.auth.hasPermission('Pages.Editions')) {
$stateProvider.state('host.editions', {
url: '/editions',
templateUrl: '~/App/host/views/editions/index.cshtml',
menu: 'Editions'
});
}
if (abp.auth.hasPermission('Pages.Administration.Host.Settings')) {
$stateProvider.state('host.settings', {
url: '/settings',
templateUrl: '~/App/host/views/settings/index.cshtml',
menu: 'Administration.Settings.Host'
});
}
//TENANT routes
$stateProvider.state('tenant', {
'abstract': true,
url: '/tenant',
template: '<div ui-view class="fade-in-up"></div>'
});
if (abp.auth.hasPermission('Pages.Tenant.Dashboard')) {
$urlRouterProvider.otherwise("/tenant/dashboard"); //Entrace page for a tenant
$stateProvider.state('tenant.dashboard', {
url: '/dashboard',
templateUrl: '~/App/tenant/views/dashboard/index.cshtml',
menu: 'Dashboard.Tenant'
});
}
if (abp.auth.hasPermission('Pages.Administration.Tenant.Settings')) {
$stateProvider.state('tenant.settings', {
url: '/settings',
templateUrl: '~/App/tenant/views/settings/index.cshtml',
menu: 'Administration.Settings.Tenant'
});
}
if (abp.auth.hasPermission('Pages.Tenant.PropertyManagement')) {
$stateProvider.state('tenant.propertymanagement', {
url: '/propertymanagement',
templateUrl: '~/App/tenant/views/propertymanagement/index.cshtml',
menu: 'PropertyManagement.Tenant'
});
}
$stateProvider.state('tenant.imports', {
url: '/imports',
templateUrl: '~/App/tenant/views/imports/index.cshtml',
menu: 'Imports'
});
$stateProvider.state('tenant.propertyListingsReport', {
url: '/propertyListingsReport',
templateUrl: '~/App/tenant/views/reports/propertyListings.cshtml',
menu: 'PropertyListingsReport.Tenant'
});
$stateProvider.state('tenant.PaymentReceived', {
url: '/PaymentReceived',
templateUrl: '~/App/tenant/views/reports/bpoReports/paymentReceived.cshtml',
menu: 'PaymentReceived.Tenant'
});
$stateProvider.state('tenant.BankReport', {
url: '/BankReport',
templateUrl: '~/App/tenant/views/reports/bpoReports/bankReport.cshtml',
menu: 'BankReport.Tenant'
});
$stateProvider.state('tenant.OwnerInformation', {
url: '/OwnerInformation',
templateUrl: '~/App/tenant/views/reports/researchInformation/ownerInformation.cshtml',
menu: 'OwnerInformation.Tenant'
});
$stateProvider.state('tenant.DriveByRequested', {
url: '/DriveByRequested',
templateUrl: '~/App/tenant/views/reports/researchInformation/driveByRequested.cshtml',
menu: 'DriveByRequested.Tenant'
});
$stateProvider.state('tenant.PotentialPropertiesToConsider', {
url: '/PotentialPropertiesToConsider',
templateUrl: '~/App/tenant/views/reports/researchInformation/potentialPropertiesToConsider.cshtml',
menu: 'PotentialPropertiesToConsider.Tenant'
});
$stateProvider.state('tenant.BankListUpcoming', {
url: '/BankListUpcoming',
templateUrl: '~/App/tenant/views/reports/researchInformation/bankListUpcoming.cshtml',
menu: 'BankListUpcoming.Tenant'
});
$stateProvider.state('tenant.AttorneyForBankUpcoming', {
url: '/AttorneyForBankUpcoming',
templateUrl: '~/App/tenant/views/reports/researchInformation/attorneyForBankUpcoming.cshtml',
menu: 'AttorneyForBankUpcoming.Tenant'
});
$stateProvider.state('tenant.UpcomingForeclosureSalesAll', {
url: '/UpcomingForeclosureSalesAll',
templateUrl: '~/App/tenant/views/reports/upcomingForeclosureSales/upcomingForeclosureSalesAll.cshtml',
menu: 'UpcomingForeclosureSalesAll.Tenant'
});
$stateProvider.state('tenant.UpcomingForeclosureSalesPriority1List', {
url: '/UpcomingForeclosureSalesPriority1List',
templateUrl: '~/App/tenant/views/reports/upcomingForeclosureSales/upcomingForeclosureSalesPriority1List.cshtml',
menu: 'UpcomingForeclosureSalesPriority1List.Tenant'
});
$stateProvider.state('tenant.UpcomingForeclosureSalesByAgent', {
url: '/UpcomingForeclosureSalesByAgent',
templateUrl: '~/App/tenant/views/reports/upcomingForeclosureSales/UpcomingForeclosureSalesByAgent.cshtml',
menu: 'UpcomingForeclosureSalesByAgent.Tenant'
});
$stateProvider.state('tenant.BankEvaluation', {
url: '/BankEvaluation',
templateUrl: '~/App/tenant/views/reports/reports/bankEvaluation.cshtml',
menu: 'BankEvaluation.Tenant'
});
$stateProvider.state('tenant.AttorneyEvaluation', {
url: '/AttorneyEvaluation',
templateUrl: '~/App/tenant/views/reports/reports/attorneyEvaluation.cshtml',
menu: 'AttorneyEvaluation.Tenant'
});
}
]);
appModule.run(["$rootScope", "settings", "$state", function ($rootScope, settings, $state) {
$rootScope.$state = $state;
$rootScope.$settings = settings;
$rootScope.safeApply = function (fn) {
var phase = this.$root.$$phase;
if (phase == '$apply' || phase == '$digest') {
if (fn && (typeof (fn) === 'function')) {
fn();
}
} else {
this.$apply(fn);
}
};
}]);
2 Answer(s)
-
0
Hi,
It seems you have 2 problems:
- GetScripts can not loaded. To understand why, please check logs in the Web project's Logs folder.
- xeditable injection problem. Are you sure that you added xeditable javascript files properly?
-
0