Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FTBFS: Cannot find namespace 'XmlCore' #34

Open
rkaw92 opened this issue Dec 12, 2019 · 1 comment
Open

FTBFS: Cannot find namespace 'XmlCore' #34

rkaw92 opened this issue Dec 12, 2019 · 1 comment

Comments

@rkaw92
Copy link

rkaw92 commented Dec 12, 2019

Hi, it looks like there are some problems with TypeScript imports in this package. When running node_modules/.bin/tsc in the root directory of the project, after npm install, we get this:

src/xml/transform.ts:28:37 - error TS2503: Cannot find namespace 'XmlCore'.

28 export interface ITransform extends XmlCore.IXmlSerializable {
                                       ~~~~~~~


Found 1 error.

Also, when building a package which depends on xmldsigjs:

node_modules/xmldsigjs/index.d.ts:738:41 - error TS2503: Cannot find namespace 'XmlCore'.

738     export interface ITransform extends XmlCore.IXmlSerializable {
                                            ~~~~~~~

node_modules/xmldsigjs/index.d.ts:941:41 - error TS2503: Cannot find namespace 'XmlCore'.

941         protected propagatedNamespaces: XmlCore.NamespaceManager;
                                            ~~~~~~~

node_modules/xmldsigjs/index.d.ts:944:38 - error TS2503: Cannot find namespace 'XmlCore'.

944         protected visibleNamespaces: XmlCore.NamespaceManager;
                                         ~~~~~~~

node_modules/xmldsigjs/index.d.ts:948:85 - error TS2503: Cannot find namespace 'XmlCore'.

948         constructor(withComments: boolean, excC14N: boolean, propagatedNamespaces?: XmlCore.NamespaceManager);
                                                                                        ~~~~~~~

node_modules/xmldsigjs/index.d.ts:960:63 - error TS2503: Cannot find namespace 'XmlCore'.

960         protected NormalizeString(input: string | null, type: XmlCore.XmlNodeType): string;
                                                                  ~~~~~~~

node_modules/xmldsigjs/index.d.ts:961:36 - error TS2503: Cannot find namespace 'XmlCore'.

961         protected IsTextNode(type: XmlCore.XmlNodeType): boolean;
                                       ~~~~~~~

node_modules/xmldsigjs/index.d.ts:1049:39 - error TS2503: Cannot find namespace 'XmlCore'.

1049     export class SignedXml implements XmlCore.IXmlSerializable {
                                           ~~~~~~~

node_modules/xmldsigjs/index.d.ts:1050:35 - error TS2503: Cannot find namespace 'XmlCore'.

1050         public Parent?: Element | XmlCore.XmlObject;
                                       ~~~~~~~

node_modules/xmldsigjs/index.d.ts:1084:45 - error TS2503: Cannot find namespace 'XmlCore'.

1084         protected GetSignatureNamespaces(): XmlCore.AssocArray<string>;
                                                 ~~~~~~~

node_modules/xmldsigjs/index.d.ts:1105:26 - error TS2503: Cannot find namespace 'XmlCore'.

1105     export const Select: XmlCore.SelectNodes;
                              ~~~~~~~


Found 10 errors

Looks like index.d.ts references a module that was not imported at the top.

rkaw92 added a commit to greatcare/xmldsigjs that referenced this issue Dec 12, 2019
rkaw92 added a commit to greatcare/xmldsigjs that referenced this issue Dec 12, 2019
@microshine
Copy link
Collaborator

Please check [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants