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

Production build failed (grunt:dist) on fresh clone of EAK #646

Open
mhenley-uk opened this issue Oct 23, 2014 · 1 comment
Open

Production build failed (grunt:dist) on fresh clone of EAK #646

mhenley-uk opened this issue Oct 23, 2014 · 1 comment

Comments

@mhenley-uk
Copy link

Based off of a previous issue raised for the same thing...
#523

Did anyone ever get to the bottom of this as to what the root cause was, I've hit this issue for the past couple of days on several ember projects and I've tried "npm cache clear" which has been mentioned with no success.

"Running "uglify:dist\assets\app.min.js" (uglify) task
{ message: 'Unexpected token name «Object», expected punc «,»',
line: 129,
col: 134,
pos: 3616 },

Uglifying source "dist/assets/app.min.js" failed.
Warning: Uglification failed.
Unexpected token name «Object», expected punc «,».
Line 129 in dist/assets/app.min.js"
I'm currently working with a fresh clone of EAK and I've managed to isolate the issue down to the uglification of the Ember templates. Delete all templates and then grunt dist command is successful...add them back in only using the application.hbs file with "{{outlet}}" as the only entry and the grunt task failed again. I've even tried just an empty version of "application.hbs" with the same result.

I'm in the situation where we are in the middle of sprint for our MVP with no option of trying out Ember CLI so we are stuck trying to overcome this issue.

Anyone got ideas going forwards as to what it may be or where I might be best to look?

Cheers

Michael

@mhenley-uk
Copy link
Author

I only logged this as a last resort due to the inactive nature of EAK.

For anyone that is interested it was down to peer dependencies within grunt-ember-templates. Here is the associated issue...dgeb/grunt-ember-templates#72

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

1 participant