[Pkg-javascript-devel] autopkgtest fails on some packages

Pirate Praveen praveen at onenetbeyond.org
Thu Sep 23 18:13:30 BST 2021



On വ്യാ, സെപ്റ്റം 23 2021 at 11:41:31 
രാവിലെ -0400 -0400, Nicolas Mora <nicolas at babelouest.org> 
wrote:
> Hello,
> 
> Le 2021-09-23 à 10 h 06, Yadd a écrit :
>> 
>> "pkg-js-autopkgtest-require" tries to use "require(foo)". If your
>> package isn't a node module, you can:
>> 
>>    echo "require" >debian/tests/pkg-js/SKIP
>> 
>> Be careful to upstream changes. Some updates declares "type: module" 
>> in
>> package.json which isn't compatible with our current nodejs
>> 
> Thanks, I uploaded a new package which skips the tests
> 
> What is the issue when a package has "type: module"?
> node-i18next-http-backend has it
> Is it a concern somehow?

That indicates it is an ES module and only newer versions of nodejs has 
support for it. I think nodejs 14 in experimental supports it, so it 
may be fine to upload to experimental.





More information about the Pkg-javascript-devel mailing list