Package: node-ts-loader
Version: 9.4.1-1
Severity: important
X-Debbugs-Cc: izzygalad...@gmail.com,
pkg-javascript-devel@alioth-lists.debian.net

While packaging corepack for Debian, I encountered this error from its
dependency node-ts-loader:

------------------------------------------
ERROR in ./sources/_entryPoint.ts
Module build failed (from
../../../../../usr/share/nodejs/ts-loader/index.js):
TypeError: chalk.Instance is not a constructor
    at getTypeScriptInstance
(/usr/share/nodejs/ts-loader/dist/instances.js:34:20)
    at Object.loader (/usr/share/nodejs/ts-loader/dist/index.js:15:67)

webpack 5.75.0 compiled with 1 error in 271 ms
-------------------------------------------

The error is caused because we are trying to access Instance property from
the chalk object.
The Instance property is available in only chalk4 and Debian has chalk5.
In package.json for node-ts-loader, the chalk version specified is chalk4.
I believe we should embed chalk4 inside node-ts-loader.

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.102.1-microsoft-standard-WSL2 (SMP w/4 CPU threads)
Locale: LANG=en_NG.utf8, LC_CTYPE=en_NG.utf8 (charmap=UTF-8) (ignored:
LC_ALL set to en_NG.utf8), LANGUAGE=en_NG.utf8
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages node-ts-loader depends on:
ii  node-chalk              5.1.2-1
ii  node-enhanced-resolve   5.10.0-1
ii  node-micromatch         4.0.5+~4.0.2-1
ii  node-semver             7.3.5+~7.3.9-1
ii  webpack [node-webpack]  5.75.0+dfsg+~cs17.16.14-1

node-ts-loader recommends no packages.

node-ts-loader suggests no packages.

-- no debconf information
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to