[Pkg-javascript-devel] 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 11:07:30 GMT 2020
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.
More information about the Pkg-javascript-devel
mailing list