Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#14018 closed defect (fixed)

dojo.js not compatible with NodeJS for windows

Reported by: Evan Owned by: Rawld Gill
Priority: high Milestone: 1.7
Component: Core Version: 1.7.0b1
Keywords: dojo, NodeJS, Cc: wpei@…
Blocked By: Blocking:

Description

Creating this on behalf of Nate(IBM, CCLA)

When running dojo build under NodeJS on windows with:

node c:/dojoroot/dojo/dojo.js load=build

It will throw an exception:

node.js:205
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
Error: ENOENT, The system cannot find the file specified. 'util/build/main.js'
    at Object.openSync (fs.js:222:18)
    at Object.readFileSync (fs.js:113:15)
    at Function.getText (d:\workspace\ORIA-Dojo-Dev\dojo\_base\configNode.js:81:
15)
    at d:\workspace\ORIA-Dojo-Dev\dojo\dojo.js:1279:12
    at d:\workspace\ORIA-Dojo-Dev\dojo\dojo.js:93:6
    at d:\workspace\ORIA-Dojo-Dev\dojo\dojo.js:614:4
    at d:\workspace\ORIA-Dojo-Dev\dojo\dojo.js:677:5
    at d:\workspace\ORIA-Dojo-Dev\dojo\dojo.js:124:11
    at d:\workspace\ORIA-Dojo-Dev\dojo\dojo.js:1642:19
    at Object.<anonymous> (d:\workspace\ORIA-Dojo-Dev\dojo\dojo.js:1644:2)

The attached patch fixes this issue.

Attachments (1)

14018.patch (436 bytes) - added by Evan 8 years ago.

Download all attachments as: .zip

Change History (7)

Changed 8 years ago by Evan

Attachment: 14018.patch added

comment:1 Changed 8 years ago by bill

Owner: set to Rawld Gill

comment:2 Changed 8 years ago by Rawld Gill

In [26746]:

accepted patch to make dojo work on windows build of node.js; #refs #14018; !strict; thanks Evan!

comment:3 Changed 8 years ago by Rawld Gill

Thanks for the patch!

I've committed; could you please verify it solves your particular use case?

comment:4 Changed 8 years ago by Rawld Gill

Resolution: fixed
Status: newclosed

comment:5 in reply to:  3 Changed 8 years ago by Evan

Replying to rcgill:

Thanks for the patch!

I've committed; could you please verify it solves your particular use case?

Thanks, rcgill,
It's working perfectly.

comment:6 Changed 8 years ago by Adam Peller

Milestone: tbd1.7
Note: See TracTickets for help on using tickets.