[Pkg-javascript-devel] Bug#997723: node-cosmiconfig: FTBFS: Object is of type 'unknown'.

Lucas Nussbaum lucas at debian.org
Sun Oct 24 12:41:57 BST 2021


Source: node-cosmiconfig
Version: 7.0.0+ds1-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211023 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> babeljs-7 src -d dist --verbose --extensions .js,.ts --ignore '**/**/*.test.js,**/**/*.test.ts' --source-maps
> src/Explorer.ts -> dist/Explorer.js
> src/ExplorerBase.ts -> dist/ExplorerBase.js
> src/ExplorerSync.ts -> dist/ExplorerSync.js
> src/cacheWrapper.ts -> dist/cacheWrapper.js
> src/getDirectory.ts -> dist/getDirectory.js
> src/getPropertyByPath.ts -> dist/getPropertyByPath.js
> src/index.ts -> dist/index.js
> src/loaders.ts -> dist/loaders.js
> src/readFile.ts -> dist/readFile.js
> src/types.ts -> dist/types.js
> Successfully compiled 10 files with Babel (676ms).
> tsc --project tsconfig.types.json
> src/loaders.ts:29:5 - error TS2571: Object is of type 'unknown'.
> 
> 29     error.message = `JSON Error in ${filepath}:\n${error.message}`;
>        ~~~~~
> 
> src/loaders.ts:29:52 - error TS2571: Object is of type 'unknown'.
> 
> 29     error.message = `JSON Error in ${filepath}:\n${error.message}`;
>                                                       ~~~~~
> 
> src/loaders.ts:44:5 - error TS2571: Object is of type 'unknown'.
> 
> 44     error.message = `YAML Error in ${filepath}:\n${error.message}`;
>        ~~~~~
> 
> src/loaders.ts:44:52 - error TS2571: Object is of type 'unknown'.
> 
> 44     error.message = `YAML Error in ${filepath}:\n${error.message}`;
>                                                       ~~~~~
> 
> src/readFile.ts:34:36 - error TS2571: Object is of type 'unknown'.
> 
> 34     if (throwNotFound === false && error.code === 'ENOENT') {
>                                       ~~~~~
> 
> src/readFile.ts:50:36 - error TS2571: Object is of type 'unknown'.
> 
> 50     if (throwNotFound === false && error.code === 'ENOENT') {
>                                       ~~~~~
> 
> 
> Found 6 errors.
> 
> make[1]: *** [debian/rules:14: override_dh_auto_build] Error 2


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/node-cosmiconfig_7.0.0+ds1-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-javascript-devel mailing list