[Pkg-javascript-devel] Bug#978341: Bug#978341: Bug#978341: node-recast: FTBFS: node_modules/@babel/parser/typings/babel-parser.d.ts(14, 11): error TS7016: Could not find a declaration file for module '@babel/types'. '/<<PKGBUILDDIR>>/node_modules/@babel/types/lib/index.js' implicitly has an 'any' type.

Xavier yadd at debian.org
Sun Dec 27 14:29:26 GMT 2020


Control: reassign -1 node-babel7
Control: reassign 978384 node-babel
Control: forcemerge -1 978384
Control: retitle -1 @babel/types: missing lib/index.d.ts
Control: affects -1 node-recast
Control: affects -1 node-ast-typpes

Le 27/12/2020 à 12:07, Xavier a écrit :
> Le 26/12/2020 à 23:05, Lucas Nussbaum a écrit :
>> Source: node-recast
>> Version: 0.20.4-1
>> Severity: serious
>> Justification: FTBFS on amd64
>> Tags: bullseye sid ftbfs
>> Usertags: ftbfs-20201226 ftbfs-bullseye
>>
>> Hi,
>>
>> During a rebuild of all packages in sid, your package failed to build
>> on amd64.
>>
>> Relevant part (hopefully):
>>> make[1]: Entering directory '/<<PKGBUILDDIR>>'
>>> mkdir -p node_modules/@types
>>> for toto in esprima estree mocha node; do \
>>> 	cp -R /usr/share/nodejs/@types/$toto node_modules/@types/; \
>>> done
>>> for toto in ast-types @babel esprima source-map tslib; do \
>>> 	cp -R /usr/share/nodejs/$toto node_modules/; \
>>> done
>>> tsc
>>> node_modules/@babel/parser/typings/babel-parser.d.ts(14,11): error TS7016: Could not find a declaration file for module '@babel/types'. '/<<PKGBUILDDIR>>/node_modules/@babel/types/lib/index.js' implicitly has an 'any' type.
>>>   Try `npm i --save-dev @types/babel__types` if it exists or add a new declaration (.d.ts) file containing `declare module '@babel/types';`
>>> node_modules/@babel/parser/typings/babel-parser.d.ts(22,11): error TS7016: Could not find a declaration file for module '@babel/types'. '/<<PKGBUILDDIR>>/node_modules/@babel/types/lib/index.js' implicitly has an 'any' type.
>>>   Try `npm i --save-dev @types/babel__types` if it exists or add a new declaration (.d.ts) file containing `declare module '@babel/types';`
> 
> I fixed part of the problem using dh-sequence-nodejs, but it seems to
> have a problem with @babel/types typescript definitions import but I
> don't find where.

Problem is in @babel/types: typescript definitions are missing



More information about the Pkg-javascript-devel mailing list