tXml icon indicating copy to clipboard operation
tXml copied to clipboard

index.d.ts errors in console

Open arthurlomakin11 opened this issue 3 years ago • 12 comments

node_modules/txml/dist/index.d.ts:2:10 - error TS2552: Cannot find name 'transformSt
ream'. Did you mean 'TransformStream'?

2 export { transformStream, filter, getElementById, getElementsByClassName, parse, s
implify, simplifyLostLess, stringify, toContentString };
           ~~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:13783:13
    13783 declare var TransformStream: {
                      ~~~~~~~~~~~~~~~
    'TransformStream' is declared here.

node_modules/txml/dist/index.d.ts:2:27 - error TS2552: Cannot find name 'filter'. Di
d you mean 'File'?

2 export { transformStream, filter, getElementById, getElementsByClassName, parse, s
implify, simplifyLostLess, stringify, toContentString };
                            ~~~~~~

  node_modules/typescript/lib/lib.dom.d.ts:5014:13
    5014 declare var File: {
                     ~~~~
    'File' is declared here.

node_modules/txml/dist/index.d.ts:2:35 - error TS2304: Cannot find name 'getElementB
yId'.

2 export { transformStream, filter, getElementById, getElementsByClassName, parse, s
implify, simplifyLostLess, stringify, toContentString };
                                    ~~~~~~~~~~~~~~

node_modules/txml/dist/index.d.ts:2:51 - error TS2304: Cannot find name 'getElements
ByClassName'.

2 export { transformStream, filter, getElementById, getElementsByClassName, parse, s
implify, simplifyLostLess, stringify, toContentString };
                                                    ~~~~~~~~~~~~~~~~~~~~~~

node_modules/txml/dist/index.d.ts:2:75 - error TS2304: Cannot find name 'parse'.

2 export { transformStream, filter, getElementById, getElementsByClassName, parse, s
implify, simplifyLostLess, stringify, toContentString };
                                                                            ~~~~~

node_modules/txml/dist/index.d.ts:2:82 - error TS2304: Cannot find name 'simplify'.

2 export { transformStream, filter, getElementById, getElementsByClassName, parse, s
implify, simplifyLostLess, stringify, toContentString };
                                                                                   ~
~~~~~~~

node_modules/txml/dist/index.d.ts:2:92 - error TS2304: Cannot find name 'simplifyLos
tLess'.

2 export { transformStream, filter, getElementById, getElementsByClassName, parse, s
implify, simplifyLostLess, stringify, toContentString };
  
         ~~~~~~~~~~~~~~~~

node_modules/txml/dist/index.d.ts:2:110 - error TS2304: Cannot find name 'stringify'
.

2 export { transformStream, filter, getElementById, getElementsByClassName, parse, s
implify, simplifyLostLess, stringify, toContentString };
  
                           ~~~~~~~~~

node_modules/txml/dist/index.d.ts:2:121 - error TS2304: Cannot find name 'toContentS
tring'.

2 export { transformStream, filter, getElementById, getElementsByClassName, parse, s
implify, simplifyLostLess, stringify, toContentString };
  

Have a lot of errors and it's annoying.

arthurlomakin11 avatar Dec 16 '21 11:12 arthurlomakin11

Hey! Why don't you do anything?

arthurlomakin11 avatar Dec 22 '21 17:12 arthurlomakin11

sorry, @arthurlomakin11 for not responding. I am in vacation now, without my notebook.

can i ask you to prepare a PR? can you try to use import txml from 'txml/dist/txml' or import txml from 'txml/txml'? then it should not depend on the File. @manzt do you know a solution?

@arthurlomakin11 how do you build your project? what is node version? typescript version? other build tools? babel?

TobiasNickel avatar Dec 23 '21 02:12 TobiasNickel

sorry, @arthurlomakin11 for not responding. I am in vacation now, without my notebook.

can i ask you to prepare a PR? can you try to use import txml from 'txml/dist/txml' or import txml from 'txml/txml'? then it should not depend on the File. @manzt do you know a solution?

@arthurlomakin11 how do you build your project? what is node version? typescript version? other build tools? babel?

Node - 16.5.0 Typescript - 4.5.3 Just using tsc.

arthurlomakin11 avatar Dec 23 '21 10:12 arthurlomakin11

@TobiasNickel import txml from 'txml/dist/txml' and import txml from 'txml/txml' don't work. It says there is no txml exported

arthurlomakin11 avatar Dec 27 '21 19:12 arthurlomakin11

@arthurlomakin11 using import * as txml from 'txml/dist/txml'; fixes the console errors

akyrey avatar Dec 31 '21 08:12 akyrey

@arthurlomakin11 using import * as txml from 'txml/dist/txml'; fixes the console errors

It just says that there's no txml in txml/dist/txml on runtime.

arthurlomakin11 avatar Jan 07 '22 17:01 arthurlomakin11

Any updates?

arthurlomakin11 avatar Jan 18 '22 13:01 arthurlomakin11

I am investigating if I should switch the build process to parcel.js in the hope, that it roduces more reliable a build that works for node, typescript, commonJS, the new es modules and work in browser (without node streams).

TobiasNickel avatar Jan 22 '22 05:01 TobiasNickel

Having a similar issue

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './dist/txml' is not defined by "exports" in /.../node_modules/txml/package.json

When uploading to GCP

jrosseel avatar Feb 07 '22 12:02 jrosseel

I am investigating if I should switch the build process to parcel.js in the hope, that it roduces more reliable a build that works for node, typescript, commonJS, the new es modules and work in browser (without node streams).

That's definitely good idea!

arthurlomakin11 avatar Feb 16 '22 14:02 arthurlomakin11

Are there any news?

import * as txml from 'txml/dist/txml'; doesn't fix it on my side, as it's not available at runtime

florianeichin avatar Nov 08 '22 07:11 florianeichin

Hey @TobiasNickel - our organization is trying to use this library as well and running into same issues, unfortunately we can't introduce this because the console errors would interrupt our dev environment. Is there any chance you can merge the Pull Request for this fix and put out a new version??

todd-alexander-cbsi avatar Apr 24 '24 21:04 todd-alexander-cbsi