1

I am having an issue with Ember building. I have tried doing npm clean cache, deleting the node_modules folder, and then npm install. I have also tried copying the ember-cli and ember-cli-htmlbars-inline-precompile folders from sources that I know build correctly and are using the same versions.

SyntaxError: Unexpected token :
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Project.require (*****\node_modules\ember-cli\lib\models\project.js:280:12)
    at Project.config (*****\node_modules\ember-cli\lib\models\project.js:198:26)
    at Class.module.exports.projectConfig (*****\node_modules\ember-cli-htmlbars-inline-precompile\index.js:103:25)
5
  • which version of node Commented Oct 14, 2016 at 1:09
  • >node -v > v4.4.4 Commented Oct 14, 2016 at 1:29
  • any reason you can't use the latest LTS version (4.6.0) - just a thought, as the error + trace you've posted doesn't really show much Commented Oct 14, 2016 at 1:31
  • Build server; limited privileges. Trying to get 4.6.0 installed now. Commented Oct 14, 2016 at 1:34
  • 4.6.0 produces the same results. Commented Oct 14, 2016 at 1:38

1 Answer 1

1

After searching and searching, I ran across this question. It turns out that my /config/environment.js was corrupt, which was resulting in this error.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.