Merge pull request 'hotFix: change require to import' (!2328) from hotFix_ImportUserError_front into master
gitea/salix/pipeline/head This commit looks good Details
gitea/salix/pipeline/pr-dev Build started... Details

Reviewed-on: #2328
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
This commit is contained in:
Javier Segarra 2024-04-19 05:53:09 +00:00
commit 1b6f7a49fd
5 changed files with 5 additions and 4 deletions

1
Jenkinsfile vendored
View File

@ -71,6 +71,7 @@ pipeline {
stage('Back') {
steps {
sh 'pnpm install --prefer-offline'
sh 'node node_modules/puppeteer/install.mjs'
}
}
stage('Print') {

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, $);