Opened 5 years ago

Last modified 3 years ago

#18277 new defect

Dojo 1.10 breaks node cluster module

Reported by: Stefan Bird Owned by:
Priority: undecided Milestone: 1.15
Component: Loader Version: 1.10.1
Keywords: Cc:
Blocked By: Blocking:

Description

The cluster module of node was broken in the upgrade from Dojo 1.9 to Dojo 1.10. Trying to run the code

define(["dojo/node!cluster"], function(cluster){
	console.log("Cluster OK");
})

Results in this error message:

JSsrc/node_modules/cluster/lib/worker.js:14
  , binding = process.binding('net')
                      ^
Error: No such module
    at Object.<anonymous> (JSsrc/node_modules/cluster/lib/worker.js:14:23)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (JSsrc/node_modules/cluster/lib/master.js:12:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)

The workaround is to load the cluster module before loading Dojo

Change History (2)

comment:1 Changed 3 years ago by dylan

Milestone: tbd1.12

comment:2 Changed 3 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.