cujojs / seed

Starter kit for building cujo.js apps
http://cujojs.com
68 stars 29 forks source link

Seed project failing to cram #15

Open vguhesan opened 8 years ago

vguhesan commented 8 years ago

Downloaded seed project and tried to cram it.

C:\temp\temp3\hello>cram index.html
Parsing index.html for curl configuration
Found data-curl-run: app/run.js
"appRoot" is inferred to be "."
"baseUrl" resolved to "C:\temp\temp3\hello/"
"output" resolved to "C:\temp\temp3\hello/app/run.cram.js"
Compiling preloads
Compiling poly/es5
Compiling poly/object
Compiling poly/string
Compiling poly/date
Compiling poly/array
Compiling poly/function
Compiling poly/json
Compiling poly/xhr
Compiling poly/lib/_base
Compiling poly/lib/_base
Compiling poly/lib/_base
Compiling poly/lib/_base
Compiling poly/support/json3
Compiling poly/lib/_base
Compiling poly/lib/_array
Compiling poly/lib/_base
Compiling modules
Compiling wire/wire!app/main
cram failed:  unfold is not a function
TypeError: unfold is not a function
    at processSpec (C:\temp\temp3\hello\lib\wire\builder\cram.js:77:11)
    at C:\temp\temp3\hello\lib\wire\builder\cram.js:63:11
    at Promise.FulfilledPromise._when (C:\Users\vguhe\AppData\Roaming\npm\node_modules\cram\amd_modules\when\when.js:439:48)
    at deliver (C:\Users\vguhe\AppData\Roaming\npm\node_modules\cram\amd_modules\when\when.js:108:7)
    at Array.<anonymous> (C:\Users\vguhe\AppData\Roaming\npm\node_modules\cram\amd_modules\when\when.js:105:63)
    at runHandlers (C:\Users\vguhe\AppData\Roaming\npm\node_modules\cram\amd_modules\when\when.js:368:12)
    at drainQueue (C:\Users\vguhe\AppData\Roaming\npm\node_modules\cram\amd_modules\when\when.js:811:3)
    at nextTickCallbackWith0Args (node.js:420:9)
    at process._tickCallback (node.js:349:13)
cram failed:  unfold is not a function
TypeError: unfold is not a function
    at processSpec (C:\temp\temp3\hello\lib\wire\builder\cram.js:77:11)
    at C:\temp\temp3\hello\lib\wire\builder\cram.js:63:11
    at Promise.FulfilledPromise._when (C:\Users\vguhe\AppData\Roaming\npm\node_modules\cram\amd_modules\when\when.js:439:48)
    at deliver (C:\Users\vguhe\AppData\Roaming\npm\node_modules\cram\amd_modules\when\when.js:108:7)
    at Array.<anonymous> (C:\Users\vguhe\AppData\Roaming\npm\node_modules\cram\amd_modules\when\when.js:105:63)
    at runHandlers (C:\Users\vguhe\AppData\Roaming\npm\node_modules\cram\amd_modules\when\when.js:368:12)
    at drainQueue (C:\Users\vguhe\AppData\Roaming\npm\node_modules\cram\amd_modules\when\when.js:811:3)
    at nextTickCallbackWith0Args (node.js:420:9)
    at process._tickCallback (node.js:349:13)

C:\temp\temp3\hello>

Please advise. NPM version 2.15.1 Node version 4.4.4

vguhesan commented 8 years ago

If I edit bower.js to the following versions:

{
    "name": "hello",
    "private": true,
    "dependencies": {
        "curl": "~0.8",
        "wire": "~0.10",
        "cola": "~0.1",
        "when": "~2.8.0",
        "meld": "~1.3",
        "poly": "~0.6",
        "rest": "~1.3",
        "cram": "~0.8",
        "jiff": "0.4",
        "msgs": "0.4"

    }
}

it works. (Especially when.js library has to be set to 2.8.0)

Setting it to the latest version of when.js 3.6.0 breaks the cram library. Can someone look into this to fix it as needed so that others trying to do this will not run into the same issue?

Similarly, if I set the when.js version to "~3" it also works.

unscriptable commented 8 years ago

Thanks for figuring this out, @vguhesan! Can you submit a PR with your changes to bower.json?

vguhesan commented 8 years ago

@unscriptable: Should I check it in with the when.js version set to "~2.8.0" or to "~3". Setting the version to either values works but what the right version to use? Please advise.

unscriptable commented 8 years ago

Better keep it at "~2.8.0" for now.