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

Error thrown while running shell #22

Closed
thehydroimpulse opened this issue Jun 22, 2014 · 8 comments
Closed

Error thrown while running shell #22

thehydroimpulse opened this issue Jun 22, 2014 · 8 comments

Comments

@thehydroimpulse
Copy link

Getting a cryptic error while building a project.

Error thrown while running shell command

Error thrown while setting up project:

Any ideas on what's happening? I'll try to send a PR if I find the issue.

After debugging this more, it's happening while setting up Ember (specifically when installing the npm dependencies) resulting in:

[TypeError: invalid data]

Edit: I guess the first error was a permission issue, but running any command, after the project is generated, fails (ember-cdv build, for example). Running the command natively errors at: Current working directory is not a Cordova-based project.

@thehydroimpulse
Copy link
Author

The error is because www is not actually a folder (symlink?). Not sure what's going on with the generator, but it's building a project that throws a bunch of errors related to the environment:

var ENV = appEnv; // appEnv doesn't exist.

Removing www and replacing it with a proper directory and fixing the environment stuff seems to work so far.

@jakecraige
Copy link
Contributor

@thehydroimpulse I'll take a look at this shortly and see if I get the same result. What version of ember-cli are you running?

@thehydroimpulse
Copy link
Author

@jakecraige Awesome, thanks. Running Ember-cli version 0.0.35

@jakecraige
Copy link
Contributor

@thehydroimpulse looks like a recent update broke it. Looking into it now. It worked with cli 0.34 but I just updated to 0.36 and the build is broken. I'll also see if I can get the error to be more helpful, lol.

Edit:
What's weird is that it's cordova throwing the error though. hm

@thehydroimpulse
Copy link
Author

Gotcha. Thanks!

@jakecraige
Copy link
Contributor

@thehydroimpulse figured it out. This commit is what broke it, the default symlink path doesn't exist anymore so that's why cordova is complaining is cause even though the symlink is there, the path doesn't exist

working on a fix

@jakecraige
Copy link
Contributor

fixed in b1aed4a

let me know if it works for you now

@thehydroimpulse
Copy link
Author

@jakecraige Thanks for the quick fix. All is working 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