Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seed project failing to cram #15

Open
vguhesan opened this issue May 15, 2016 · 4 comments
Open

Seed project failing to cram #15

vguhesan opened this issue May 15, 2016 · 4 comments

Comments

@vguhesan
Copy link

vguhesan commented May 15, 2016

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
Copy link
Author

vguhesan commented May 15, 2016

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
Copy link
Member

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

@vguhesan
Copy link
Author

@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
Copy link
Member

Better keep it at "~2.8.0" for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants