Your message dated Sat, 2 Apr 2022 14:35:10 +0200
with message-id 
<CAJxTCxxfhWiEXmSj8m-9eD3sXZj9Ny9Paw7Yu=fhr9hpafr...@mail.gmail.com>
and subject line Re: nodejs: Search in global paths for ES modules as well
has caused the Debian Bug report #1001609,
regarding nodejs: Search in global paths for ES modules as well
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1001609: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1001609
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: nodejs
Severity: important
Control: block 1001526 by -1

Currently all modules get installed in /usr/share/nodejs or one of arch 
dependent paths (older modules in /usr/lib/nodejs). For commonjs modules nodejs 
can find these modules by default, but now many modules are ES modules by 
default (type=module in package.json), which nodejs searches only in local 
node_modules directory so apt installed modules are not found.

I think we should patch nodejs to search for system ES modules like we did for 
commonjs.

load-json-file is an example which became a ES module in recent release.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

--- End Message ---
--- Begin Message ---
>
> Currently all modules get installed in /usr/share/nodejs or one of arch
> dependent paths (older modules in /usr/lib/nodejs). For commonjs modules
> nodejs can find these modules by default, but now many modules are ES
> modules by default (type=module in package.json), which nodejs searches
> only in local node_modules directory so apt installed modules are not
> found. I think we should patch nodejs to search for system ES modules like
> we did for commonjs. load-json-file is an example which became a ES module
> in recent release.


This is fixed at least for system-installed es-modules:
/usr/lib/node_modules -> nodejs

It doesn't allow locally installed es-modules to import system-installed
es-modules,
which is a feature, because it is really not in the es-modules
specification to allow that.

Jérémy

--- End Message ---
-- 
Pkg-javascript-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to