Package: node-bootstrap
Version: 5.3.3+dfsg-1
Severity: normal

Dear Maintainer,

Merry Christmas, in case you are celebrating!

/usr/share/node_modules/bootstrap/package.json has the following lines:

  "main": "dist/js/bootstrap.js",
  "module": "dist/js/bootstrap.esm.js",

However, the "dist" subdirectory of /usr/share/node_modules/bootstrap does
not exist.

Because of this, I get an error when trying to compile pydata-sphinx-theme
from source. To do so, I first make a "node_modules" symlink in the build
directory pointing to /usr/share/node_modules, and then run webpack. The error
is the following:

  existing directory 
/home/dmitry/python-team/pydata-sphinx-theme/node_modules/bootstrap
    using description file: 
/home/dmitry/python-team/pydata-sphinx-theme/node_modules/bootstrap/package.json
 (relative path: .)
      use ./dist/js/bootstrap.esm.js from module in package.json
        using description file: 
/home/dmitry/python-team/pydata-sphinx-theme/node_modules/bootstrap/package.json
 (relative path: ./dist/js/bootstrap.esm.js)
          no extension
            Field 'browser' doesn't contain a valid alias configuration
            
/home/dmitry/python-team/pydata-sphinx-theme/node_modules/bootstrap/dist/js/bootstrap.esm.js
 doesn't exist

It would be nice if the layout in /usr/share/node_modules matched the layout
which is produced when running "npm install bootstrap". This layout can be
also seen here: <https://www.npmjs.com/package/bootstrap?activeTab=code>.

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature

Reply via email to