Skip to content

Compilation errors with Node 0.10 #3

@creshal

Description

@creshal
$ git clone https://github.com/cretz/dust-php.git && cd dust-php
Cloning into dust-php...
remote: Counting objects: 246, done.
remote: Compressing objects: 100% (149/149), done.
remote: Total 246 (delta 93), reused 244 (delta 91)
Receiving objects: 100% (246/246), 170.70 KiB, done.
Resolving deltas: 100% (93/93), done.

$ npm install
info trying registry request attempt 1 at 12:00:36
http GET https://registry.npmjs.org/pratphall
info trying registry request attempt 1 at 12:00:36
http GET https://registry.npmjs.org/fs-extra
info trying registry request attempt 1 at 12:00:36
http GET https://registry.npmjs.org/dustjs-linkedin/1.2.0
info trying registry request attempt 1 at 12:00:36
http GET https://registry.npmjs.org/jake
http 304 https://registry.npmjs.org/fs-extra
http 304 https://registry.npmjs.org/dustjs-linkedin/1.2.0
http 304 https://registry.npmjs.org/pratphall
npm http GET https://registry.npmjs.org/dustjs-linkedin/-/dustjs-linkedin-1.2.0.tgz
http 304 https://registry.npmjs.org/jake
npm http 200 https://registry.npmjs.org/dustjs-linkedin/-/dustjs-linkedin-1.2.0.tgz
info trying registry request attempt 1 at 12:00:40
http GET https://registry.npmjs.org/jsonfile
info trying registry request attempt 1 at 12:00:40
http GET https://registry.npmjs.org/ncp
info trying registry request attempt 1 at 12:00:40
http GET https://registry.npmjs.org/rimraf
info trying registry request attempt 1 at 12:00:40
http GET https://registry.npmjs.org/mkdirp
info trying registry request attempt 1 at 12:00:40
http GET https://registry.npmjs.org/utilities
info trying registry request attempt 1 at 12:00:40
http GET https://registry.npmjs.org/minimatch
http 304 https://registry.npmjs.org/mkdirp
http 304 https://registry.npmjs.org/rimraf
http 304 https://registry.npmjs.org/ncp
http 304 https://registry.npmjs.org/jsonfile
http 304 https://registry.npmjs.org/utilities
info trying registry request attempt 1 at 12:00:41
http GET https://registry.npmjs.org/graceful-fs
http 304 https://registry.npmjs.org/minimatch
info trying registry request attempt 1 at 12:00:41
http GET https://registry.npmjs.org/lru-cache
info trying registry request attempt 1 at 12:00:41
http GET https://registry.npmjs.org/sigmund
http 304 https://registry.npmjs.org/graceful-fs
http 304 https://registry.npmjs.org/lru-cache
http 304 https://registry.npmjs.org/sigmund
dustjs-linkedin@1.2.0 node_modules/dustjs-linkedin

fs-extra@0.6.3 node_modules/fs-extra
├── jsonfile@1.0.0
├── ncp@0.4.2
├── mkdirp@0.3.5
└── rimraf@2.2.0 (graceful-fs@1.2.3)

jake@0.5.17 node_modules/jake
├── utilities@0.0.28
└── minimatch@0.2.12 (sigmund@1.0.0, lru-cache@2.3.0)

pratphall@0.1.0 node_modules/pratphall

$ ./node_modules/.bin/jake build --trace
Recreating src and tests folders
Compiling with Pratphall

path.js:313
        throw new TypeError('Arguments to path.resolve must be strings');
              ^
TypeError: Arguments to path.resolve must be strings
    at Object.exports.resolve [as resolvePath] (path.js:313:15)
    at addUnitAndReferences (/root/Development/dust-php/node_modules/pratphall/bin/ppc.js:23776:41)
    at Array.forEach (native)
    at Compiler.compile (/root/Development/dust-php/node_modules/pratphall/bin/ppc.js:23805:19)
    at Compiler.run (/root/Development/dust-php/node_modules/pratphall/bin/ppc.js:24129:33)
    at CommandLineRunner.run (/root/Development/dust-php/node_modules/pratphall/bin/ppc.js:28049:26)
    at Pratphall (/root/Development/dust-php/node_modules/pratphall/bin/ppc.js:28057:29)
    at Object.<anonymous> (/root/Development/dust-php/node_modules/pratphall/bin/ppc.js:28058:3)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
jake aborted.
ode_modules/pratphall/bin/ppc.js:23776:41)
    at Array.forEach (native)
    at Compiler.compile (/root/Development/dust-php
ode_modules/pratphall/bin/ppc.js:23805:19)
    at Compiler.run (/root/Development/dust-php
ode_modules/pratphall/bin/ppc.js:24129:33)
    at CommandLineRunner.run (/root/Development/dust-php
ode_modules/pratphall/bin/ppc.js:28049:26)
    at Pratphall (/root/Development/dust-php
ode_modules/pratphall/bin/ppc.js:28057:29)
    at Object.<anonymous> (/root/Development/dust-php
ode_modules/pratphall/bin/ppc.js:28058:3)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)

$ node --version
v0.10.13

This error message seems to be related to an API break in Node 0.10, is there a way to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions