Package: node-katex
Version: 0.16.10+~cs6.1.0-9
Severity: normal

Hi,

The ES module entry that /usr/share/nodejs/katex/package.json exports as
"import" - /usr/share/javascript/katex/katex.mjs - begins with

    import _defineProperty from '@babel/runtime/helpers/defineProperty';

but neither libjs-katex nor katex has node-babel7-runtime (which is what
installs /usr/share/nodejs/@babel/runtime) in its Depends.  So importing
katex as an ES module fails on any system where nothing else happens to
pull that package in:

    $ node --input-type=module -e 'import("katex")'
    file:///usr/share/javascript/katex/katex.mjs:1
    import _defineProperty from '@babel/runtime/helpers/defineProperty';
    ^
    Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@babel/runtime'
    imported from /usr/share/javascript/katex/katex.mjs

Installing node-babel7-runtime makes it work (the lookup from
/usr/share/javascript/katex/ finds it through /usr/share/node_modules,
which is a symlink to /usr/share/nodejs).
-- 
Pkg-javascript-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to