Le mar. 26 août 2025 à 17:21, Julian Gilbey <
jdg@debian.org> a écrit :
Hi all,
I'm trying to build nbdime (my current attempt is at
https://salsa.debian.org/jdg/nbdime). I get lots of warnings from
typescript because the source files it's searching for are not
present; here is a sorted list of the warnings generated:
Failed to parse source map from '/usr/share/nodejs/domutils/src/feeds.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/domutils/src/feeds.ts'
Failed to parse source map from '/usr/share/nodejs/domutils/src/helpers.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/domutils/src/helpers.ts'
Failed to parse source map from '/usr/share/nodejs/domutils/src/index.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/domutils/src/index.ts'
Failed to parse source map from '/usr/share/nodejs/domutils/src/legacy.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/domutils/src/legacy.ts'
Failed to parse source map from '/usr/share/nodejs/domutils/src/manipulation.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/domutils/src/manipulation.ts'
Failed to parse source map from '/usr/share/nodejs/domutils/src/querying.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/domutils/src/querying.ts'
Failed to parse source map from '/usr/share/nodejs/domutils/src/stringify.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/domutils/src/stringify.ts'
Failed to parse source map from '/usr/share/nodejs/domutils/src/traversal.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/domutils/src/traversal.ts'
Failed to parse source map from '/usr/share/nodejs/entities/src/decode_codepoint.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/entities/src/decode_codepoint.ts'
Failed to parse source map from '/usr/share/nodejs/entities/src/decode.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/entities/src/decode.ts'
Failed to parse source map from '/usr/share/nodejs/entities/src/encode.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/entities/src/encode.ts'
Failed to parse source map from '/usr/share/nodejs/entities/src/escape.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/entities/src/escape.ts'
Failed to parse source map from '/usr/share/nodejs/entities/src/generated/decode-data-html.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/entities/src/generated/decode-data-html.ts'
Failed to parse source map from '/usr/share/nodejs/entities/src/generated/decode-data-xml.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/entities/src/generated/decode-data-xml.ts'
Failed to parse source map from '/usr/share/nodejs/entities/src/generated/encode-html.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/entities/src/generated/encode-html.ts'
Failed to parse source map from '/usr/share/nodejs/entities/src/index.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/entities/src/index.ts'
Failed to parse source map from '/usr/share/nodejs/htmlparser2/src/index.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/htmlparser2/src/index.ts'
Failed to parse source map from '/usr/share/nodejs/htmlparser2/src/Parser.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/htmlparser2/src/Parser.ts'
Failed to parse source map from '/usr/share/nodejs/htmlparser2/src/Tokenizer.ts' file: Error: ENOENT: no such file or directory, open '/usr/share/nodejs/htmlparser2/src/Tokenizer.ts'
Is this a bug in these packages (eg node-htmlparser2), or is it fine
to ignore them?
These messages makes no sense, source maps exists when a file:
- has been compiled from typescript to _javascript_,
- has been compiled or bundled or minified from _javascript_ to a (possibly) lower _javascript_ version
Debian packages may or may not install source maps.
If everything else works, you can safely ignore the warnings.
However it might be worth it to investigate if we want source maps in our packages.
Best wishes,
Julian