glimmerjs / glimmer-application-pipeline

Tooling for developing Glimmer standalone apps with ember-cli
MIT License
21 stars 31 forks source link

Could not require 'ember-cli-build.js': Unexpected identifier #143

Closed jorgelainfiesta closed 6 years ago

jorgelainfiesta commented 6 years ago

Hi!

I'm trying to use glimmer-application-pipeline v0.11.0 but no matter what combination of Glimmer dependencies I use, I always get an error saying:

Could not require 'ember-cli-build.js': Unexpected identifier

Is version 0.11.0 not supposed to be used yet or something similar?

The issue can be replicated by creating a new glimmer app from the blueprints. Here's what my package.json contains:


  "name": "my-app",
  "version": "0.0.0",
  "description": "A brand new Glimmer app.",
  "directories": {
    "doc": "doc",
    "test": "tests"
  },
  "scripts": {
    "build": "ember build -prod",
    "start": "ember server",
    "test": "ember test"
  },
  "devDependencies": {
    "@glimmer/application": "^0.9.1",
    "@glimmer/application-pipeline": "^0.11.0",
    "@glimmer/blueprint": "~0.9.1",
    "@glimmer/component": "^0.9.1",
    "@glimmer/inline-precompile": "^1.0.0",
    "@glimmer/resolver": "^0.4.1",
    "@glimmer/test-helpers": "^0.30.3",
    "@types/qunit": "^2.0.31",
    "broccoli-asset-rev": "^2.5.0",
    "ember-cli": "^2.14.0",
    "ember-cli-dependency-checker": "^2.0.1",
    "ember-cli-inject-live-reload": "^1.6.1",
    "ember-cli-tslint": "^0.1.3",
    "ember-cli-uglify": "^2.0.0-beta.1",
    "qunitjs": "^2.3.3",
    "typescript": "~2.6.0"
  },
  "engines": {
    "node": ">= 4.0"
  },
  "private": true
}```

I've also tried moving the packages from the monorepo to `0.10.0-alpha.1` but not luck. Using ember-cli 3.0.0 doesn't help either. 
t-sauer commented 6 years ago

Which node version are you using?

jorgelainfiesta commented 6 years ago

Thanks! I just realized I had v6 in my cli for some reason. After moving to a recent version it works wonderfully.