hotFix: change require to import #2328

Merged
jsegarra merged 5 commits from hotFix_ImportUserError_front into master 2024-04-19 05:53:10 +00:00
4 changed files with 4 additions and 4 deletions
Showing only changes of commit 87e23b49e7 - Show all commits

View File

@ -1,5 +1,5 @@
import ngModule from '../../module';
const UserError = require('vn-loopback/util/user-error');
import UserError from 'core/lib/user-error';
export default class Controller {
constructor($scope, $element, $http, vnApp, $translate, $state, $location) {

View File

@ -1,5 +1,5 @@
import ngModule from '../../module';
const UserError = require('vn-loopback/util/user-error');
import UserError from 'core/lib/user-error';
export default class Controller {
constructor($scope, $element, $http, vnApp, $translate, $state, $location) {

View File

@ -1,6 +1,6 @@
import ngModule from '../module';
import ModuleMain from 'salix/components/module-main';
const UserError = require('vn-loopback/util/user-error');
import UserError from 'core/lib/user-error';
export default class Ticket extends ModuleMain {
fetchParams($params) {

View File

@ -1,6 +1,6 @@
import ngModule from '../module';
import Descriptor from 'salix/components/descriptor';
const UserError = require('vn-loopback/util/user-error');
import UserError from 'core/lib/user-error';
class Controller extends Descriptor {
constructor($element, $, $rootScope) {
super($element, $);