[Pkg-javascript-devel] node-vue-resource test suites failing whilst building

Ayoyimika Ajibade ayoyimikaajibade at gmail.com
Fri Feb 25 04:08:51 GMT 2022


Hello building node-vue-resource tests are failing due to a package 
node-got not properly loaded, as webpack output file 
(../dist/vue-resource.common.js) is part of the module for testing, as i 
try to log the client function that is undefined and i got an empty map 
(CLIENT=> {}).

The issues i think is happening is that webpack is ignoring got which is 
seen in the build log. Hence, impossible to load client a name coined 
out for requiring got module

(debian-sid)ayoyimika at Ayoyimika-PC:~/debian-js-packaging/vue-resource/node-vue-resource$ 
dpkg-buildpackage
dpkg-buildpackage: info: source package node-vue-resource
dpkg-buildpackage: info: source version 1.5.3+dfsg+~1.3.6-3
dpkg-buildpackage: info: source distribution experimental
dpkg-buildpackage: info: source changed by Ayoyimika Ajibade 
<ayoyimikaajibade at gmail.com>
dpkg-buildpackage: info: host architecture amd64
  dpkg-source --before-build .
  debian/rules clean
dh clean
    dh_auto_clean --buildsystem=nodejs
         rm -rf ./node_modules/.cache
         rm -rf types-vue-resource/node_modules/.cache
rm ./node_modules/.cache
rm types-vue-resource/node_modules/.cache
unlink node_modules/@types/vue-resource
    dh_clean
  dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building node-vue-resource using existing 
./node-vue-resource_1.5.3+dfsg+~1.3.6.orig-types-vue-resource.tar.xz
dpkg-source: info: building node-vue-resource using existing 
./node-vue-resource_1.5.3+dfsg+~1.3.6.orig.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: warning: ignoring deletion of file .babelrc.js, use 
--include-removal to override
dpkg-source: warning: ignoring deletion of directory .github
dpkg-source: warning: ignoring deletion of file 
.github/ISSUE_TEMPLATE.md, use --include-removal to override
dpkg-source: info: building node-vue-resource in 
node-vue-resource_1.5.3+dfsg+~1.3.6-3.debian.tar.xz
dpkg-source: info: building node-vue-resource in 
node-vue-resource_1.5.3+dfsg+~1.3.6-3.dsc
  debian/rules binary
dh binary
    dh_update_autotools_config
    dh_autoreconf
    dh_auto_configure --buildsystem=nodejs
Link node_modules/@types/vue-resource -> ../../types-vue-resource
    debian/rules override_dh_auto_build
make[1]: Entering directory 
'/home/ayoyimika/debian-js-packaging/vue-resource/node-vue-resource'
webpack --config debian/webpack.config.js --mode development \
         --output-library-name VueResource \
--entry ./src/index.js --output-filename ./vue-resource.common.js \
#umd
asset ./vue-resource.common.js 69.4 KiB [emitted] (name: main)
runtime modules 670 bytes 3 modules
modules by path ./src/ 38.3 KiB
   modules by path ./src/http/ 18.9 KiB
     modules by path ./src/http/interceptor/*.js 2.91 KiB 7 modules
     modules by path ./src/http/client/*.js 7.15 KiB 5 modules
     modules by path ./src/http/*.js 8.8 KiB 4 modules
   modules by path ./src/*.js 7.87 KiB 4 modules
   modules by path ./src/url/*.js 3.56 KiB 4 modules
   modules by path ./src/lib/*.js 7.99 KiB
     ./src/lib/promise.js 3.99 KiB [built] [code generated]
     ./src/lib/url-template.js 4 KiB [built] [code generated]
got (ignored) 15 bytes [built] [code generated]
webpack 5.65.0 compiled successfully in 7876 ms

asset ./vue-resource.common.js 69.8 KiB [emitted] (name: main)
runtime modules 670 bytes 3 modules
modules by path ./src/ 38.3 KiB
   modules by path ./src/http/ 18.9 KiB
     modules by path ./src/http/interceptor/*.js 2.91 KiB 7 modules
     modules by path ./src/http/client/*.js 7.15 KiB 5 modules
     modules by path ./src/http/*.js 8.8 KiB 4 modules
   modules by path ./src/*.js 7.87 KiB 4 modules
   modules by path ./src/url/*.js 3.56 KiB 4 modules
   modules by path ./src/lib/*.js 7.99 KiB
     ./src/lib/promise.js 3.99 KiB [built] [code generated]
     ./src/lib/url-template.js 4 KiB [built] [code generated]
got (ignored) 15 bytes [built] [code generated]
webpack 5.65.0 compiled successfully in 7805 ms
webpack --config debian/webpack.config.js --mode development \
--entry ./src/index.js --output-filename ./vue-resource.js --target web \
--output-library-name VueResource \
terser dist/vue-resource.js -o dist/vue-resource.min.js
asset ./vue-resource.js 70.3 KiB [emitted] (name: main)
runtime modules 670 bytes 3 modules
modules by path ./src/ 38.3 KiB
   modules by path ./src/http/ 18.9 KiB
     modules by path ./src/http/interceptor/*.js 2.91 KiB 7 modules
     modules by path ./src/http/client/*.js 7.15 KiB 5 modules
     modules by path ./src/http/*.js 8.8 KiB 4 modules
   modules by path ./src/*.js 7.87 KiB 4 modules
   modules by path ./src/url/*.js 3.56 KiB 4 modules
   modules by path ./src/lib/*.js 7.99 KiB
     ./src/lib/promise.js 3.99 KiB [built] [code generated]
     ./src/lib/url-template.js 4 KiB [built] [code generated]
got (ignored) 15 bytes [built] [code generated]
webpack 5.65.0 compiled successfully in 6655 ms

asset ./vue-resource.js 70.8 KiB [emitted] (name: main)
runtime modules 670 bytes 3 modules
modules by path ./src/ 38.3 KiB
   modules by path ./src/http/ 18.9 KiB
     modules by path ./src/http/interceptor/*.js 2.91 KiB 7 modules
     modules by path ./src/http/client/*.js 7.15 KiB 5 modules
     modules by path ./src/http/*.js 8.8 KiB 4 modules
   modules by path ./src/*.js 7.87 KiB 4 modules
   modules by path ./src/url/*.js 3.56 KiB 4 modules
   modules by path ./src/lib/*.js 7.99 KiB
     ./src/lib/promise.js 3.99 KiB [built] [code generated]
     ./src/lib/url-template.js 4 KiB [built] [code generated]
got (ignored) 15 bytes [built] [code generated]
webpack 5.65.0 compiled successfully in 6541 ms
make[1]: Leaving directory 
'/home/ayoyimika/debian-js-packaging/vue-resource/node-vue-resource'
    dh_auto_test --buildsystem=nodejs
         ln -s ../. node_modules/vue-resource
         /bin/sh -ex debian/tests/pkg-js/test
+ jest --env=node
   console.log
     CLIENT=> {}

       at __WEBPACK_DEFAULT_EXPORT__ 
(webpack:/VueResource.VueResource/src/http/client/node.js?:15:11)

   console.error
     TypeError: client is not a function
         at eval 
(webpack://VueResource.VueResource/./src/http/client/node.js?:25:5)
         at new Promise (<anonymous>)
         at new PromiseObj 
(webpack://VueResource.VueResource/./src/promise.js?:19:20)
         at __WEBPACK_DEFAULT_EXPORT__ 
(webpack://VueResource.VueResource/./src/http/client/node.js?:16:10)
         at sendRequest 
(webpack://VueResource.VueResource/./src/http/client/index.js?:72:10)
         at eval 
(webpack://VueResource.VueResource/./src/http/client/index.js?:34:30)
         at Client 
(webpack://VueResource.VueResource/./src/http/client/index.js?:54:10)
         at Http 
(webpack://VueResource.VueResource/./src/http/index.js?:49:10)
         at Function.post 
(webpack://VueResource.VueResource/./src/http/index.js?:88:16)
         at Object.<anonymous> 
(/home/ayoyimika/debian-js-packaging/vue-resource/node-vue-resource/test/http.test.js:10:25)

       at error (webpack:/VueResource.VueResource/src/util.js?:53:13)
       at eval (webpack:/VueResource.VueResource/src/http/index.js?:53:52)

   console.log
     CLIENT=> {}

       at __WEBPACK_DEFAULT_EXPORT__ 
(webpack:/VueResource.VueResource/src/http/client/node.js?:15:11)

   console.error
     TypeError: client is not a function
         at eval 
(webpack://VueResource.VueResource/./src/http/client/node.js?:25:5)
         at new Promise (<anonymous>)
         at new PromiseObj 
(webpack://VueResource.VueResource/./src/promise.js?:19:20)
         at __WEBPACK_DEFAULT_EXPORT__ 
(webpack://VueResource.VueResource/./src/http/client/node.js?:16:10)
         at sendRequest 
(webpack://VueResource.VueResource/./src/http/client/index.js?:72:10)
         at eval 
(webpack://VueResource.VueResource/./src/http/client/index.js?:34:30)
         at Client 
(webpack://VueResource.VueResource/./src/http/client/index.js?:54:10)
         at Http 
(webpack://VueResource.VueResource/./src/http/index.js?:49:10)
         at Function.post 
(webpack://VueResource.VueResource/./src/http/index.js?:88:16)
         at Object.<anonymous> 
(/home/ayoyimika/debian-js-packaging/vue-resource/node-vue-resource/test/http.test.js:23:25)

       at error (webpack:/VueResource.VueResource/src/util.js?:53:13)
       at eval (webpack:/VueResource.VueResource/src/http/index.js?:53:52)

  FAIL  test/http.test.js
   Vue.http
     ✕ post("jsfiddle.net/html") (79 ms)
     ✕ post("jsfiddle.net/json") (18 ms)

   ● Vue.http › post("jsfiddle.net/html")

     TypeError: client is not a function

       at eval 
(webpack:/VueResource.VueResource/src/http/client/node.js?:25:5)
       at new PromiseObj 
(webpack:/VueResource.VueResource/src/promise.js?:19:20)
       at __WEBPACK_DEFAULT_EXPORT__ 
(webpack:/VueResource.VueResource/src/http/client/node.js?:16:10)
       at sendRequest 
(webpack:/VueResource.VueResource/src/http/client/index.js?:72:10)
       at eval 
(webpack:/VueResource.VueResource/src/http/client/index.js?:34:30)
       at Client 
(webpack:/VueResource.VueResource/src/http/client/index.js?:54:10)
       at Http (webpack:/VueResource.VueResource/src/http/index.js?:49:10)
       at Function.post 
(webpack:/VueResource.VueResource/src/http/index.js?:88:16)
       at Object.<anonymous> (test/http.test.js:10:25)

   ● Vue.http › post("jsfiddle.net/json")

     TypeError: client is not a function

       at eval 
(webpack:/VueResource.VueResource/src/http/client/node.js?:25:5)
       at new PromiseObj 
(webpack:/VueResource.VueResource/src/promise.js?:19:20)
       at __WEBPACK_DEFAULT_EXPORT__ 
(webpack:/VueResource.VueResource/src/http/client/node.js?:16:10)
       at sendRequest 
(webpack:/VueResource.VueResource/src/http/client/index.js?:72:10)
       at eval 
(webpack:/VueResource.VueResource/src/http/client/index.js?:34:30)
       at Client 
(webpack:/VueResource.VueResource/src/http/client/index.js?:54:10)
       at Http (webpack:/VueResource.VueResource/src/http/index.js?:49:10)
       at Function.post 
(webpack:/VueResource.VueResource/src/http/index.js?:88:16)
       at Object.<anonymous> (test/http.test.js:23:25)

Test Suites: 1 failed, 1 total
Tests:       2 failed, 2 total
Snapshots:   0 total
Time:        1.89 s
Ran all test suites.
dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit 
code 1
make: *** [debian/rules:6: binary] Error 255
dpkg-buildpackage: error: debian/rules binary subprocess returned exit 
status 2


Pls assistance is needed to help me debug and find solution. Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x1FF1115A4CAC464D.asc
Type: application/pgp-keys
Size: 3151 bytes
Desc: OpenPGP public key
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20220225/3fd6c7cb/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20220225/3fd6c7cb/attachment.sig>


More information about the Pkg-javascript-devel mailing list