- Package:
- node-source-map
- Source:
- node-source-map
- Submitter:
- Yadd
- Date:
- 2022-05-31 16:06:08 UTC
- Severity:
- serious
- Tags:
Build with webpack 5 produces an unusable bundle. See for example https://ci.debian.net/data/autopkgtest/testing/amd64/r/ruby-terser/22213688/log.gz Error is "self is not defined". This can be fixed using a --target option.
I tried with --target web, but that does not seem to work. Can you try? Also tried --mode production, and globalObject: 'this' in output section of webpack.config.js
Strangely --target node works Le 30 mai 2022 21:01:42 GMT+02:00, Pirate Praveen <praveen@onenetbeyond.org> a écrit :
ExecJS::ProgramError: TypeError: Cannot set properties of undefined (setting 'sourceMap')
We believe that the bug you reported is fixed in the latest version of node-source-map, 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 1012130@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Yadd <yadd@debian.org> (supplier of updated node-source-map 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 ftpmaster@ftp-master.debian.org) Format: 1.8 Date: Tue, 31 May 2022 14:42:41 +0200 Source: node-source-map Built-For-Profiles: nocheck Architecture: source Version: 0.7.0++dfsg2+really.0.6.1-11 Distribution: unstable Urgency: medium Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> Changed-By: Yadd <yadd@debian.org> Closes: 1012130 Changes: node-source-map (0.7.0++dfsg2+really.0.6.1-11) unstable; urgency=medium . * Drop build-dependency to nodejs * Use dh-sequence-nodejs auto test & install * Fix webpack build (Closes: #1012130) Checksums-Sha1: bef91b7af3ff93b78f20eae8ffaba63a4a08c661 2303 node-source-map_0.7.0++dfsg2+really.0.6.1-11.dsc 239a383fa13de438e8ec06fc9d8bac8ab7c169bf 5540 node-source-map_0.7.0++dfsg2+really.0.6.1-11.debian.tar.xz Checksums-Sha256: e0a251a62483311832e1e2a8f3c3beae64dedf5175f0c13a9e25398505a4b814 2303 node-source-map_0.7.0++dfsg2+really.0.6.1-11.dsc ea1b942ce89a6ae946c2b9027a1ae68c06250e0031e13615eed2029d517e2a8e 5540 node-source-map_0.7.0++dfsg2+really.0.6.1-11.debian.tar.xz Files: e3df20c309be0d2b97e621f942b74d2c 2303 javascript optional node-source-map_0.7.0++dfsg2+really.0.6.1-11.dsc 98919d4c4a31b8c189bcbda7e2322c2c 5540 javascript optional node-source-map_0.7.0++dfsg2+really.0.6.1-11.debian.tar.xz -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmKWDdwACgkQ9tdMp8mZ 7umSLg//aG7WTq4poCQdg7XLCNmrhj4tpSDOEzjvvNFxOgjW+f/9IfkFtiKmhSSq +tQIHFzl50RHGduMCZqOfBWK/+YiT1OAPeYemZh00N8obvtI0F3pLQFeLCeughV/ WRu2/6EC9ZKRPZ55Pg5wdiymRYhgcSAL4fBC0ePhxjhbx87tOlGor0u/0qzocCqJ pbZjNPBa6T5RJsPpscl/VYiRZf3788FoypkQdw3p54y8tNkkOYMnZeehSHGvjZH/ CUadCKOqMtaNB6ojIijYrJ/724aVMvXXPgCoudXyQ/D4eVYhN7+RUW4hexo2YaVg RM7tCCpxESGzWjyOuYn/4AzU+oJ+OvUHVl+Y3g03GUwKRWImFhn9HL22ahW+r61N zDLLjAwjxgBQDEXWgya79G2MlooW5HF87G2sFqfmDZwRvBTMTOMflcJkU7JW/t/I IBm9BKoAkpxAWoRpwVeuuvsnyVyyJZiIC8Xf2V2gTc+6YXtdMl3Raq3oxA7Upupc QyC8rybJ0MtoLk4kKEcNr80PSUefiYKCGSTMLA7lXuX2yVqQx72+7MmadxMNxWJM /gQE41fom4fttcv4cqRbcecvfMQDbR/buMYrDZbz83O55dg7QI+pd6NFV6vv8ksk 0xbhlNQ4PDBfKiXn3jiVLyTa90EfYLO2PLQbMV/jpsi/RMypa3M= =kmhB -----END PGP SIGNATURE-----
2022, മേയ് 31 6:36:06 PM IST, Debian Bug Tracking System <owner@bugs.debian.org>ൽ എഴുതി ruby-terser autopkgtest is still failing. ExecJS::ProgramError: ReferenceError: window is not defined. This looks like a regression in webpack 5 when producing bundles that is expected to work in both node and browsers. https://github.com/webpack/webpack/issues/12768#issuecomment-785047283
We believe that the bug you reported is fixed in the latest version of node-source-map, 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 1012130@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Pirate Praveen <praveen@debian.org> (supplier of updated node-source-map 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 ftpmaster@ftp-master.debian.org) Format: 1.8 Date: Tue, 31 May 2022 20:55:37 +0530 Source: node-source-map Architecture: source Version: 0.7.0++dfsg2+really.0.6.1-12 Distribution: unstable Urgency: medium Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> Changed-By: Pirate Praveen <praveen@debian.org> Closes: 1012130 Changes: node-source-map (0.7.0++dfsg2+really.0.6.1-12) unstable; urgency=medium . * Team upload * Use conditional globalObject to fix universal bundle (Closes: #1012130) Checksums-Sha1: 4fd84f4f1379c2106978e289f15fba02acdd52b0 2303 node-source-map_0.7.0++dfsg2+really.0.6.1-12.dsc 0674dfc0739811713f3af4dc0e9c256f643394ae 5716 node-source-map_0.7.0++dfsg2+really.0.6.1-12.debian.tar.xz c7abe0f6c8b16871f0afa00e192284c537dab054 15639 node-source-map_0.7.0++dfsg2+really.0.6.1-12_amd64.buildinfo Checksums-Sha256: 9be3c43faf25cab9f3a5087e3cf40b601943e3ffd49497173f27fde30041709b 2303 node-source-map_0.7.0++dfsg2+really.0.6.1-12.dsc caf709fe532c0a004cea2a7f07b5f52f31132b0dc2e764590510165efd719540 5716 node-source-map_0.7.0++dfsg2+really.0.6.1-12.debian.tar.xz 2339a1fba5874567430cdb97d98e4f0447359361dde589ae1e1b60ff34c65792 15639 node-source-map_0.7.0++dfsg2+really.0.6.1-12_amd64.buildinfo Files: 52a02b0584cacbd50e5ef370b563013f 2303 javascript optional node-source-map_0.7.0++dfsg2+really.0.6.1-12.dsc 4d2d79b6a31fbd3b2c7145a04f051dce 5716 javascript optional node-source-map_0.7.0++dfsg2+really.0.6.1-12.debian.tar.xz 111329a0c8403d281a9d693714162721 15639 javascript optional node-source-map_0.7.0++dfsg2+really.0.6.1-12_amd64.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE0whj4mAg5UP0cZqDj1PgGTspS3UFAmKWN20ACgkQj1PgGTsp S3XjJA/+Mltehbq0j+nBxtlpPFXYlGVghCIZIogq2Uj53aIkhD+9DXN6IfBiuKsQ 6i/Li2QXFw8WlN8sWYvmrgQzIm5+Dfdto0m2pkufqMYPTMiGMcN4w/4mz2uEksxe a7ULHzU+Vmo3zJfmKfElWSleEJVCTOhO0SZHuNDKkd9BSsgR2/xokf054NXCQB4U iUM7vHgtM438HL6H1xNPV/K61v5Hb3mK6YO1qg3aHTlbjf4y6uwRRgkYU7XGoaH+ iLjHKnJGRZHxqfaMVCGFmuOmeAMAWEWCIjFULv1Eve/sfB5gJ8r486JyKidCvlAV FIx27T2ITy748Qp/Whil7MGU1IUDWn0pFjpdud+yXCE25y28iBf7HnTxoUttvxSx sr+G32RvufshrVLB7wQbBlGWs7SZLu2WU5U9tK9gjNoKQvrMkvIhmTauFAUFEXKd i1sx6CLJTcro6/TIKYUpXbBKNkbXm5gFwlznJImc3kLcYT+D+Zv+7bo1tnza5MW5 ix4ppwDMKk1Ahk1W05dr6ylqJhPGj5+35zxU2g1TMaYt4dPunPtaO4KtDX3pPmgu 7pZh3lB6uldkMZ9IsYRHzVYzncypjQ1R9H8Zo2UsMoSJfZX0gAyiTOQbvaeq7i8o VXVif2tZME2fN3vQ3UFbMr9G/MYyi+i2BjaQj0FTA0pVDCI/OYE= =26i/ -----END PGP SIGNATURE-----