Your message dated Sun, 12 Sep 2021 16:33:51 +0000
with message-id <[email protected]>
and subject line Bug#994137: fixed in node-strip-json-comments 4.0.0-3
has caused the Debian Bug report #994137,
regarding node-strip-json-comments no more provides commonjs files
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.)
--
994137: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=994137
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: eslint
Version: 5.16.0~dfsg+~4.16.8-5
Severity: grave
Justification: renders package unusable
Control: affects -1 gnome-shell-extension-appindicator
X-Debbugs-Cc: [email protected]
Original steps to reproduce: rebuild gnome-shell-extension-appindicator
Minimized steps to reproduce: eslint --version
Expected result: eslint runs
Actual result:
> user@host:~$ eslint --version
> internal/modules/cjs/loader.js:1015
> throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath);
> ^
>
> Error [ERR_REQUIRE_ESM]: Must use import to load ES Module:
> /usr/share/nodejs/strip-json-comments/index.js
> require() of ES modules is not supported.
> require() of /usr/share/nodejs/strip-json-comments/index.js from
> /usr/share/nodejs/eslint/lib/config/config-file.js is an ES module file as it
> is a .js file whose nearest parent package.json contains "type": "module"
> which defines all .js files in that package scope as ES modules.
> Instead rename index.js to end in .cjs, change the requiring code to use
> import(), or remove "type": "module" from
> /usr/share/nodejs/strip-json-comments/package.json.
>
> at Object.Module._extensions..js (internal/modules/cjs/loader.js:1015:13)
> at Module.load (internal/modules/cjs/loader.js:863:32)
> at Function.Module._load (internal/modules/cjs/loader.js:708:14)
> at Module.require (internal/modules/cjs/loader.js:887:19)
> at require (internal/modules/cjs/helpers.js:74:18)
> at Object.<anonymous>
> (/usr/share/nodejs/eslint/lib/config/config-file.js:19:21)
> at Module._compile (internal/modules/cjs/loader.js:999:30)
> at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
> at Module.load (internal/modules/cjs/loader.js:863:32)
> at Function.Module._load (internal/modules/cjs/loader.js:708:14) {
> code: 'ERR_REQUIRE_ESM'
> }
I'm not sure whether this is a bug in strip-json-comments, or a bug in
eslint. If this is considered to be a strip-json-comments bug, please
reassign. I suspect this is a regression triggered by the change that
closed #993167.
(The system info below is from a ssh login into a throwaway test VM where
I reproduced this bug, which is why my local is not yet set up correctly.)
I'm going to work around this by making gnome-shell-extension-appindicator
stop running eslint at build-time, which is probably a good change
regardless.
Thanks,
smcv
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-8-amd64 (SMP w/2 CPU threads)
Locale: LANG=en_GB.utf8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set
LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages eslint depends on:
ii node-ajv 6.12.6-2
ii node-concat-stream 2.0.0-1
ii node-debug 4.3.1+~cs4.1.5-1
ii node-doctrine 3.0.0-3
ii node-eslint-scope 5.1.1-1
ii node-eslint-utils 2.1.0-3
ii node-eslint-visitor-keys [node-types-e 2.0.0+~0.0.45-1
ii node-espree 7.3.1~dfsg1-1
ii node-esquery 1.3.1~ds-4
ii node-estraverse 5.2.0-1
ii node-esutils 2.0.3-1
ii node-file-entry-cache 6.0.0+~3.0.4+~2.0.0+~1.0.0+~2.0.1-1
ii node-functional-red-black-tree 1.0.1+20181105-5
ii node-glob 7.1.7+~cs7.5.19-2
ii node-globals 13.5.0-1
ii node-ignore 5.1.4-6
ii node-imurmurhash 0.1.4-1.1
ii node-json-schema [node-types-json-sche 0.3.0+~7.0.6-1
ii node-json-stable-stringify 1.0.1+~cs5.1.32-1
ii node-levn 0.3.0+dfsg-4
ii node-lodash 4.17.21+dfsg+~cs8.31.189.20210220-2
ii node-mkdirp 1.0.4+~1.0.1-1
ii node-optionator 0.9.1+dfsg-1
ii node-path-is-inside 1.0.2-1.1
ii node-progress 2.0.3-1
ii node-regenerate-unicode-properties 8.2.0+ds-2
ii node-regexpp 3.1.0-5
ii node-resolve-from [node-import-fresh] 5.0.0+~3.1.0+~3.3.0+~2.0.0-1
ii node-semver 7.3.4-1
ii node-strip-json-comments 4.0.0-2
ii nodejs 12.22.5~dfsg-2
Versions of packages eslint recommends:
ii node-chalk 4.1.0-1
pn node-inquirer <none>
ii node-js-yaml 3.14.1+dfsg+~3.12.6-2
ii node-strip-ansi 6.0.0-2
pn node-text-table <none>
Versions of packages eslint suggests:
pn node-babel-code-frame <none>
pn node-babel-eslint <none>
ii node-esprima 4.0.1+ds+~4.0.3-1
pn node-esprima-fb <none>
pn node-table <none>
-- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "C.UTF-8",
LANG = "en_GB.utf8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
--- End Message ---
--- Begin Message ---
Source: node-strip-json-comments
Source-Version: 4.0.0-3
Done: Yadd <[email protected]>
We believe that the bug you reported is fixed in the latest version of
node-strip-json-comments, which is due to be installed in the Debian FTP
archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Yadd <[email protected]> (supplier of updated node-strip-json-comments package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 12 Sep 2021 18:03:44 +0200
Source: node-strip-json-comments
Architecture: source
Version: 4.0.0-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers
<[email protected]>
Changed-By: Yadd <[email protected]>
Closes: 994137
Changes:
node-strip-json-comments (4.0.0-3) unstable; urgency=medium
.
* Team upload
* Use dh-sequence-nodejs
* Build commonjs file, set it in "main" field and remove 'type: module'
(Closes: #994137)
Checksums-Sha1:
c30818fa42a34d4436251732ac5425072daf67f6 2202
node-strip-json-comments_4.0.0-3.dsc
ba81a5ef2ac35904312fc424da924efa289e46ac 4304
node-strip-json-comments_4.0.0-3.debian.tar.xz
Checksums-Sha256:
a6f2a3bedecb14c2e5b34ddac38c09103b7726eff2597c3dc4a3dcd6d90e5285 2202
node-strip-json-comments_4.0.0-3.dsc
cac415c5dc71c239b05893551f95257f7a0b7f349301958068e886e8f1146c61 4304
node-strip-json-comments_4.0.0-3.debian.tar.xz
Files:
923ae5b0773cc7f4565ad5f1d1851405 2202 javascript optional
node-strip-json-comments_4.0.0-3.dsc
39d564a4fd7e58a62421f708303072a9 4304 javascript optional
node-strip-json-comments_4.0.0-3.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmE+JVAACgkQ9tdMp8mZ
7un+JQ/+IFVdL+lcA7ScOIP7CxNDmjycFZ+GFmxWpHN1FYM4N7c6DyPS3YWqizNV
4v2NCuaZJ56uoTfQOP29/C/cKqpb5NCbU7Ff54gtXe5gDiueAMqiEAnar4Zc2T1y
U39Fwibf1ZxHMidlK4EIWnuN/iU2q6iGydPVfS3Rx+eNYCDaGY6pcLij5vBOu6od
9DEX96GKj1BeOpJfirynkiX8Iz98QB7xmJAznXGVtgv7gCABQXU+V+JEa6xNgB8N
y+6vBMlr+Gq60lEElEyZXhFNTKLB0DOjLHU1JiCKdTZVDBKyNiSiR7kvRiAbxmfG
IvT9ni2037eyNrQh073SClCYVhugp/2TCwAI3AuSXGl9vwBvXOCYsyJ8R09RM2i+
nhwfbaIywn8eJQiJiHGkcBLvxUqYvLTlowV74Gi98wA/n6/nBVKCkTSuYckjOZOW
+n7IqPb58BmB6dl4UV6wnwspOHVkbgP9RRDSgmc52VSA2IErMrQKTaw3HO8EW73G
VurcIrt4z70WzO4M6RuVKwu9WQu7UQzEjruWpeegNzfh+OgrgqnZf8+dVtxMb8VD
Cs9/nVCOt5QKqfsqCzR6/XQqQxeMvm2B/6mbUWqPyddbekjlvHa0H8ENWPTI7SuN
gfV/BUAYKU82kIZ0SyywAwkb+HeW/ZKkBfhxYBVSn52pKcpNsiA=
=Y4EP
-----END PGP SIGNATURE-----
--- End Message ---