Error "xdom not defined" in autopulous-xdom2jso

I have imported the packages below into my service, which I use to process the SOAP API.

"autopulous-xdom": "~0.0.12"
"autopulous-xdom2jso": "^0.0.12"

I am trying to use them with the bottom lines at the top of my service.ts

import 'autopulous-xdom/xdom.js';
import 'autopulous-xdom2jso/xdom2jso.js';

import convert = xdom2jso.convert;
import {Injectable} from '@angular/core';

@Injectable()
export class SoapService {
    constructor() {}
}

I have no errors compiling and creating. But when I run the application in the browser, I get below errors.

enter image description here

Has anyone worked with xdom2jso and xdom ? Please, help.

+4
source share
1 answer

I had no answers, and all I could do was develop the plug and raise the PR in autopulous-xdom2jso .

: https://github.com/autopulous/xdom2jso/pull/2

0

Source: https://habr.com/ru/post/1673010/


All Articles