[Pkg-javascript-devel] tsc help needed

Pirate Praveen praveen at onenetbeyond.org
Tue Oct 15 07:10:58 BST 2019



On 2019, ഒക്‌ടോബർ 15 12:43:08 AM IST, Xavier <yadd at debian.org> wrote:
>Hi all,
>
>node-entities migration is blocked due to node-htmlparser2. To update
>it
>I updated node-domelementtype, node-domhandler, node-dom-serializer and
>node-domutils. Whil trying to build node-domutils, I got this:
>
>tsc
>../../../usr/share/nodejs/domhandler/lib/node.d.ts(1,29): error TS2307:
>Cannot find module 'domelementtype'.
>
>It seems that tsc isn't able to find
>/usr/share/nodejs/domelementtype/lib/index.d.ts (package.json:
>"types":"lib/index.d.ts", file installed).
>
>Could someone take a look at my changes (nothing pushed, only in salsa)
>

I have seen this error. I think tsc does not check this field. It needs index.d.ts in the root directory. Create a symbolic link for that. I think I did this for one of the rollup build deps, I will check which one.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



More information about the Pkg-javascript-devel mailing list