[Pkg-javascript-devel] Bug#964218: Bug#964218: Bug#964218: node-yarnpkg: autopkgtest fails with node-uuid 8.2 from experimental - "Cannot read property 'v4' of undefined"

Pirate Praveen praveen at onenetbeyond.org
Mon Dec 7 13:22:00 GMT 2020


Control: reassign -1 node-copy-webpack-plugin

On Sun, 12 Jul 2020 15:43:19 +0530 Pirate Praveen 
<praveen at onenetbeyond.org> wrote:
 > I tried fixing this in babel6 branch (as master is broken - I found 
it
 > broke after merging babel 7 branch), but autopkgtest still fails with
 > the same error. Can you check/review the patch? Could this be a bug 
in
 > uuid?

I found the problem and a work around.

 yarnpkg why uuid
yarn why v1.22.4
[1/4] Why do we have the module "uuid"...?
[2/4] Initialising dependency graph...
[3/4] Finding dependency...
[4/4] Calculating file sizes...
=> Found "uuid at 8.1.0"
info Has been hoisted to "uuid"
info This module exists because it's specified in "dependencies".
info Disk size without dependencies: "244KB"
info Disk size with unique dependencies: "244KB"
info Disk size with transitive dependencies: "244KB"
info Number of shared dependencies: 0
=> Found "aws-sdk#uuid at 3.3.2"
info This module exists because "aws-sdk" depends on it.
info Disk size without dependencies: "108KB"
info Disk size with unique dependencies: "108KB"
info Disk size with transitive dependencies: "108KB"
info Number of shared dependencies: 0
Done in 0.70s.

Since gitlab wants uuid 8.x, /usr/share/gitlab/node_modules has uuid 
8.1.0 and gets priority over /usr/share/nodejs/uuid

Once I force uuid 3.x for copy-webpack-plugin by

cd /usr/share/nodejs/copy-webpack-plugin/node_modules/
ln -s /usr/share/nodejs/uuid/ .

The error about uuid exports is gone. A proper fix would be to update 
node-uuid to 8.x in debian. This will need a transition and updating 
all reverse dependencies to use the new api. We can continue that 
discussion in #974587.



More information about the Pkg-javascript-devel mailing list